For the time being, make a note of what I noticed the other day. I couldn't find it even after searching ...
It is not clear how long a variable length column will be.
Sample.java
//Definition--50 lines are fixed
ArrayList[] list = new ArrayList[50]
for(int i = 0;i < 50;i++){
list[i] = new ArrayList(); //Make a variable length column here
}
Sample.java
//Add an item to a row (add a column)
list[3].add("apple"); //This is one row plus
//Gets the value of any column from the specified row.
list[3].get(4) //Get the data in the 3rd row and 4th column
Recommended Posts