l Exercise2.java public class Exercise2 { 2 public static void main(String args[]) { 3 String x = args[@]; //add code be
-
- Site Admin
- Posts: 899603
- 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
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)