Question: 3 . ( Array ) : createArray * Directions: * Create an int array the size of the users input. If the user inputs 0
Array: createArray
Directions:
Create an int array the size of the users input. If the user
inputs print otherwise print the newly created array.
Ex: If the input is:
The output is:
Ex: If the input is:
The output is:
empty
Ex: If the input is:
The output is:
import java.util.Scanner;
public class LabProgram
public static void mainString args
Type your code here.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
