I say get the algo then build yourself it will be easy for you to debug.
And please wrap your post in [code] tags
Type: Posts; User: avinandan012
I say get the algo then build yourself it will be easy for you to debug.
And please wrap your post in [code] tags
...removed spoonfed code
--- Update ---
Ohh there's another thing you're missing you didn't dissolve the scanner object.
ALWAYS CLOSE ANY TYPE OF STREAM AFTER USE.
add this at the end...
why are you doing with only if else ??Any particular reason?
You can use any sorting algorithm.
The way you are printing is outright wrong. Store the values in order in an Array then print the...