This discussion is archived
3 Replies Latest reply: Oct 5, 2013 5:57 AM by EJP RSS

Max amount paid customer and Min Value customer

ded1f41f-e4ac-4add-98a0-cfb47a9ca918 Newbie
Currently Being Moderated

HI,

 

My questiion is...

 

I have a file i.e hospitalbill.txt. The data looks as below.(columns are date,name,roomno,consultant fee,room fee,other allowances)

 

26/10/2011, rama, 1, 1000, 5000, 2000

25/11/2011, prabu, 3, 500, 4000, 1000

05/08/2011, sree, 2, 1000, 2000, 1500

2/12/2011, rama, 1, 1000,2500, 2000

03/012/2011, sree, 2, 550, 2000, 100

04/06/2011. kumar, 5, 1000, 1500, 800

02/07/2011, kumar, 5, 100, 00, 100

 

the output..should be as below

 

Max------> rama,1, 13500

Min-------> kumar,5, 3500

 

 

Could you please provide the solution....in Core Java only....

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points