This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have use the read method in the filereader class to read into a char ,and it returns the number of character have been read. Now I want to read the file in a 2D array. No way to use the same method because the read() method doesn't accept 2d array, and I don't want to the array has any empty contents(since java can't let you change dynamically the length of array).Help please!
a 2d array is probably a bad choice for storage when reading in from a file since you don't know how many read operations you will be performing. Try one of the collections that grow when you add something to it (java.util.ArrayList, for example).