Search:

Type: Posts; User: PhHein

Search: Search took 0.10 seconds.

  1. Re: Working with numbers when there's "space" in between them

    Teach your self programming in ten years ? ;)
  2. Re: Working with numbers when there's "space" in between them

    :D
  3. Re: Working with numbers when there's "space" in between them

    int[] numbers = new int[8]; this is an array of length 8, i.e. the index range is [0,7]. You're trying to access index 8.
  4. Re: Working with numbers when there's "space" in between them

    One hint don't google, but go straight to the API docs: String.split()
  5. Re: Working with numbers when there's "space" in between them

    12121314503 is 11 chars so there must be two 2 digit numbers or one 3 digit number to fit into his 3x3 matrix. Or he has to omit remaining digits. Whatever, without him specifying the exact problems...
  6. Re: Working with numbers when there's "space" in between them

    Hmm, in the OP he had a 13 and a 50, so that would rule out the charAt() solution.
  7. Re: Working with numbers when there's "space" in between them

    You can either user String.split() to get a String array containing the individual numbers as Strings, or you can use String.replaceAll() to get rid of the spaces. I'd use the split version.
Results 1 to 7 of 7