Page 1 of 1

l Exercise2.java public class Exercise2 { 2 public static void main(String args[]) { 3 String x = args[@]; //add code be

Posted: Sat Nov 27, 2021 2:41 pm
by answerhappygod
L Exercise2 Java Public Class Exercise2 2 Public Static Void Main String Args 3 String X Args Add Code Be 1
L Exercise2 Java Public Class Exercise2 2 Public Static Void Main String Args 3 String X Args Add Code Be 1 (11.57 KiB) Viewed 54 times
l Exercise2.java public class Exercise2 { 2 public static void main(String args[]) { 3 String x = args[@]; //add code below this line 7 8 4 5 6 9 10 11 12 //add code above this line } }
Collapse Loops > Coding Exercises - Loops Exercise 2 Print Ten Times Write a program that takes in a string x from the user as an argument and then prints that information ten times using a loop. Requirements • You must include a for or while loop in your code. You must include one and only one System.out.println statement in your code. Click to compile your code COMPILE CODE Test your code with a few different values TEST WITH "10" TEST WITH "HELLO TEST WITH "JAVA" Loops: Exercise 2 When your code is ready, click the button below to submit your work for grading. Check it (1 left)