Guest User

Untitled

a guest
Feb 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1.     public static void main(String args [])
  2.     {
  3.  
  4.         int a [] = new int [10];
  5.         int b [] = new int [10];
  6.         int c [] = new int [10];
  7.         int d [] = new int [10];
  8.         int e [] = new int [10];
  9.         int f [] = new int [10];
  10.        
  11.         //instead of having 6 different arrays, why not just make 1 array?
  12.        
  13.         int g [] [] = new int[6][]; //allocate memory for 6 arrays.
  14.        
  15.         return;    
  16.     }
Add Comment
Please, Sign In to add comment