You are viewing a single comment's thread. Return to all comments →
Simple one
int a[]=new int[n]; for(int x=0;x<n;x++){ a[x]=scan.nextInt(); }
Seems like cookies are disabled on this browser, please enable them to open this website
Java 1D Array
You are viewing a single comment's thread. Return to all comments →
Simple one
int a[]=new int[n]; for(int x=0;x<n;x++){ a[x]=scan.nextInt(); }