Jave program: sorting?

Prepare a Espresso program reads in a file regarding products, stored in text
formatting (2 outlines per entry).This software must then read in information regarding past sales
transactions in addition to output all the products into a new track, sorted through product criteria, along
utilizing their sales rank and also the five different products having which we were looking at most commonly
ordered.

product file:

1234567890123 (product id)
Milk C total cream 600ml (product name)
9832983102938
Bakery C wholemeal loaf
1299128391283
Ovum, Extra Significant, Barn laid

beyond sale:

Bill number:1
Variety of items:3
1234567890123(product id)
9832983102938
1299128391283
Bill number:2
Variety of items:4
9832983102938
1234567890123
1299128391283
1234567890123

output file:

Product:Milk C full treatment 600ml
USERNAME:1234567890123
Product sales Rank:1
Product sales Count:82
This supplement was purchased frequently with:
ONE:(1299128391283) Ovum, Extra Significant, Barn lay 8
ONLY TWO:(9832983102938) Bakery C wholemeal loaf 5
THREE:(3289742398473) Apples C Golden Delicious 4
SEVERAL:(9348029348934) Dark chocolate, Dark, 200g 4
A FEW:(3024823094839) Noodles, Udon C Fresh 250g 4
Product:Pork :cured, ham, separable body fat, boneless
USERNAME:0000140956153
Product sales rank:2
Product sales Count:82
This supplement was purchased frequently with:
……

we are really harmful at java, and post jst wondering the amount of program i want
and do i use comparable to accomplish this question
plz present me any idea plus hits that will be fantastic!! thx thx

I may possibly use a linked all the list a customized object variety.Say you’ve productRecord.espresso.Make that class contain the details you desire and build a linked report on it.Then read into of which class crucial computer data.Lastly, write methods to compute in addition to output your current file.Simple.

Leave a Reply