maze[i][x] = insert.charAt(x); } } } What I'm trying to do is read the characters on the line and fill them in the maze (of type char) array. Not sure why this code isn't working like it should be.
What is input ? If it is a class that blocks on a call to nextLine() if there is no more input, then it may just be sitting there waiting. You do realise you are doing several calls to nextLine() (one for each time thru the inner loop) for each call to hasNext() that you do, so it's possible you call nextLine() when hasNext() would have returned false.
I've never used Scanner so this is just a guess, but the Javadoc for the nextXXX methods says This method may block while waiting for input. I would be tempted to put some print statements in to your code to see if you can find where it is looping/blocking.