2d char array from a file
问题 I am trying to read in a string from a file, extract individual characters and use those characters to fill a 2D char array. So far I have been able to do everything except fill the array. I keep getting an Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: error message. Any help would be appreciated. This is my first time working with 2D arrays. Thanks. Here are the contents of the test.txt. Each word on a new line. The first 2 integers are the dimensions of the array 4 4