Thursday 6 March 2014

Sorted and Printed!

The integers that I put into input.txt is sorted now!
The sorted list is printed into output.txt.
Strings will also do the same.

I found out that it still says isDouble=true when it's an integer, meaning that isDouble should be =false.
I'm also getting java.lang.ArrayOutOfBoundsException whenever I try to sort doubles, This problem might be because of the previous one (about doubles being set as true when they aren't, and are still true when they are doubles, so doubles is the problem though I don't see the problem yet and this assignment is already way over due...

Wednesday 5 March 2014

FalseTrueFalseTrueFalseTrueFalseTrue

Program properly tests to see if something is an integer or double now. Stupid mistakes all around made it not work...like having things in loops when they shouldn't be, among other things. A lot of reorganising of the code was needed.

Working on putting the sorting method into the program.
Am I supposed to have three different sorting methods since they all call a different type of array (integer array, double array, string array)?