...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...
Type: Posts; User: avinandan012
...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...