You are viewing a single comment's thread. Return to all comments →
import java.util.*;
public class Solution {
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int a[]=new int[n]; for(int i=0; i<a.length; i++) { a[i]=scan.nextInt(); } scan.close();
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 →
import java.util.*;
public class Solution {