Here is my code: http://pastebin.com/KTR86nzD
This is input.csv:
name,age
Fred,88
Stella,11
Nellie,99
George,22
Violet,33
Rose,77
Bob,66
Lena,55
Billy,44
It should print the above in this format -
Fred is 88 years old
Stella is 11 years old
Nellie is 99 years old
...
Billy is 44 years old.
Afterwards, it should sort the age in ascending order and print them like this
Stella is 11 years old
George is 22 years old
Violet is 33 years old
...
Nellie is 99 years old.
Also when output is printed, first line is always
name is years old.
Is there way to get rid of this?
I think my bubbleSort() method is wrong. Could anyone help me out?