You are viewing a single comment's thread. Return to all comments →
public class Solution { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] arrayNumber = new int[n]; for(int i=0; i<n; i++){ arrayNumber[i]= scanner.nextInt(); System.out.println(arrayNumber[i]); } scanner.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 →
}