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)
l Exercise2.java public class Exercise2 { 2 public static void main(String args[]) { 3 String x = args[@]; //add code be
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
l Exercise2.java public class Exercise2 { 2 public static void main(String args[]) { 3 String x = args[@]; //add code be
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!