Question: 3 . ( Array ) : createArray * Directions: * Create an int array the size of the users input. If the user inputs 0

3.(Array): createArray
* Directions:
* Create an int array the size of the users input. If the user
inputs 0, print , otherwise print the newly created array.
*
* Ex: If the input is:
*2
* The output is:
*02
*
* Ex: If the input is:
*0
* The output is:
* empty
*
* Ex: If the input is:
*9
* The output is:
*0246810121416
*/
import java.util.Scanner;
public class LabProgram4_3{
public static void main(String[] args){
/* Type your code here. */
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!