+ 5
Java Module 2 Quiz Final Question
Hi. I am on the final question for the module 2 quiz for Java, the question is: Fill in the blanks to print "in a loop" 5 times using the for loop. (blank space) (int x = 0; (blank space) < 5; x++) { System.out.println("in a loop"); } Anyone know how to answer this?
4 Respuestas
+ 2
for x
+ 2
class B implements Runnable {
public void run() {
System.out.println("B");
}
}
class A extends Thread {
public void run() {
System.out.println("A");
Thread t = new Thread(new B());
t.start();
}
public static void main(String[ ] args) {
A object = new A();
object.start();
}
}
0
one (for)
second (x)
0
for (int x = 0; x < 5; x++) {
System.out.println("in a loop");
}