+ 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?

7th Dec 2020, 6:59 PM
Austin Harendt
Austin Harendt - avatar
4 odpowiedzi
+ 2
for x
7th Dec 2020, 7:26 PM
Avinesh
Avinesh - avatar
+ 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(); } }
24th Dec 2020, 7:57 AM
GOKULNATHAN. E
GOKULNATHAN. E - avatar
0
one (for) second (x)
28th Jun 2022, 11:49 PM
Opanuga Stephen
Opanuga Stephen - avatar
0
for (int x = 0; x < 5; x++) { System.out.println("in a loop"); }
23rd Jan 2023, 5:25 PM
Mehak Srivastava
Mehak Srivastava - avatar