Why doesn't this code work for the 7th line? It works just fine without the 7th line. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why doesn't this code work for the 7th line? It works just fine without the 7th line.

https://code.sololearn.com/cIjIwANTj3bb/?ref=app

19th Jul 2018, 11:22 AM
Parth Salat
Parth Salat - avatar
2 Answers
+ 5
public class Program { public static void main(String[] args) { for(;;) { System.out.println("hi"); System.out.println("Time delayed"); } } } edit // Parth Salat just line 4 {} and close line 8 happy codings!👍
19th Jul 2018, 12:22 PM
Daljeet Singh
Daljeet Singh - avatar
+ 1
Daljeet Singh Thanks, but what exactly have u changed In ur ans?
19th Jul 2018, 12:44 PM
Parth Salat
Parth Salat - avatar