Search:

Type: Posts; User: ajw1993

Search: Search took 0.10 seconds.

  1. Re: Changing strings in a switch statement n stroing it in an array

    what should i put in the switch paramter ? that keeps coming up null
  2. Re: Changing strings in a switch statement n stroing it in an array

    testMarks [add][columns+gem]= scanner2.nextInt(); <= what do i need to put there since it wont read ints
  3. Re: Changing strings in a switch statement n stroing it in an array

    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
  4. Re: Changing strings in a switch statement n stroing it in an array

    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
  5. Re: Changing strings in a switch statement n stroing it in an array

    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
  6. Re: Changing strings in a switch statement n stroing it in an array

    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
  7. Re: Changing strings in a switch statement n stroing it in an array

    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...
  8. Re: Changing strings in a switch statement n stroing it in an array

    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
  9. Re: Changing strings in a switch statement n stroing it in an array

    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
  10. Re: Changing strings in a switch statement n stroing it in an array

    the problem now iss that it cant find anything when trying to store anything so what should i change to put there
  11. Re: Changing strings in a switch statement n stroing it in an array

    the second scanner object that is in the first for loop
    - replies that scanner closed in util scanner.
    java.lang.IllegalStateException: Scanner closed
    at...
  12. Re: Changing strings in a switch statement n stroing it in an array

    changed the code n out the problems im having in the message
  13. Changing strings in a switch statement n stroing it in an array

    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...
Results 1 to 13 of 13