what should i put in the switch paramter ? that keeps coming up null
Type: Posts; User: ajw1993
what should i put in the switch paramter ? that keeps coming up null
testMarks [add][columns+gem]= scanner2.nextInt(); <= what do i need to put there since it wont read ints
what i meant by it not storing the strings is when it has been converted into ints and i have put some but it doesnt seem to print out the first time only the last 4 after being converted
its not reading all the lines or storing the ints and the converted strings into the 2d array all it does is read the converted strings
there is 5 different ratings and each of them have to be changed to an int depending on the rating type .e.g excellent - 5 , very good - 4 etc
there are 8 lines of code on each line there are 10 ints that have to be read in followed by 4 strings which have to be converted to strings and stored in a 2d array. If you get it now
yeah its the way that the file lines are n i have to store the ints into an array plus change the strings into ints and put them into the 2d array, but since it is cant read ints by the way that it...
is there any way of storing the ints once it has been in the loop along with the other ints in the file on the lines as you can see i have posted the file above that i am working with
yeah sure when it excutes in the testMarks[add][columns+gem] = scanner2.nextInt(); <= it says that it is null and ovbs but im not sure what to put to make it work
the problem now iss that it cant find anything when trying to store anything so what should i change to put there
the second scanner object that is in the first for loop
- replies that scanner closed in util scanner.
java.lang.IllegalStateException: Scanner closed
at...
changed the code n out the problems im having in the message
Hey i need help i need to read in a file (the delimiter below) n store it in an araay whilst changing a string from the end of the file into the array by changing it into an int .
Any Help this is...