I can not find the syntax to create several tables (tab1 tab2 tab3 ...) based on a variable:
Code:int temp=5; for(int i=0;i<temp;i++){ int tab+i[] = new int[6]; }
I can not find the syntax to create several tables (tab1 tab2 tab3 ...) based on a variable:
Code:int temp=5; for(int i=0;i<temp;i++){ int tab+i[] = new int[6]; }
With a 2D table for example? At the same time, what's the use?
in fact any ..
I may be poorly expressed, in fact I can not find the syntax for a table name in a for loop as above ... you see I want to get more tables named tab1 tab2 tab3. I can do in vb but in java, no
And thus, the table of table you can not do. Impossible to make that in Java, you cannot give a name dynamically. With Map<String, int []> you can have a rather close behavior.
Bookmarks