We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Data Structures
- Java 1D Array
- Discussions
Java 1D Array
Java 1D Array
Sort by
recency
|
274 Discussions
|
Please Login in order to post a comment
Practicing mapping:
In java 8:
int[] a = new int[n]; for (int i =0; i < n; i++) { a[i] = scan.nextInt(); }
int a[]=new int[n];
int[] a = new int[n]; for(int i = 0; i < n; i++){ a[i] = scan.nextInt(); }