public class Test { public static void main(String[] args) { Scanner in = new Scanner(System.in);
System.out.println("Please enter the size of an array: "); int size = in.nextInt(); int [] array = new int[size]; for (int i = 0; i < size; i++) { System.out.println("Please enter element #" + i + ": "); array[i] = in.nextInt(); }
System.out.println("Here is your array: "); for (int i = 0; i < size; i++) System.out.print(array[i] + " "); } }
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment