Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) What are some of the ways that loop execution can be controlled? What are ind

ID: 3784928 • Letter: 1

Question

1) What are some of the ways that loop execution can be controlled? What are indefinite loops?

2) Explain the various ways that a variable can be incremented?

3) What is the syntax of the Java for loop?

4) Why might we want to use nested loops in an application?

5) What are the differences between the Java Character, String, StringBuffer, and StringBuilder classes? What are some of the popular methods of these classes?

6) If Strings are a type of Java object, why don't we need to create them with the new keyword like other objects?

7) How can data be converted from one type to another in Java?

Explanation / Answer

Multiple Questions : Answering one (3rd).

3)

The Syntax for Java for loop is :

for (initialization; termination; increment/decrement) {
statement(s)
}

eg:

for(int i=1; i<101; i++){
   System.out.println("Number : " + i);
}