Search:

Type: Posts; User: amf19

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: Inserting characters from string into 2d array?

    You're right! Still out of bounds error though after fixing!!

    --- Update ---

    Wait ignore last post, it worked! Thank you so much
  2. [SOLVED] Re: Inserting characters from string into 2d array?

    I still get the same error - out of bounds exception
  3. [SOLVED] Re: Inserting characters from string into 2d array?

    I've tried putting an if statement in, but that doesn't seem to work:



    char[] charArray = text.toCharArray();
    char[][] myArray = new char[x][y];
    int nextChar = 0;
    for (int a = 0; a...
  4. [SOLVED] Re: Inserting characters from string into 2d array?

    ah, thank you.. that makes sense. Still unsure as to how I would go about fixing this though?
  5. [SOLVED] Inserting characters from string into 2d array?

    Hi there,
    I am new to java and am having trouble with some code... I am trying to input the characters from a string into a 2d array. The array size depends on the amount of characters in the...
Results 1 to 5 of 5