Skip to main content
๐Ÿ› Bug HuntJV Java Easy+10 XP

Missing Semicolon

This code won't compile. Find the fix.

๐Ÿ› Find the bug
1int sum = 0;
2for (int i = 0; i < 10; i++) {
3 sum += i
4}
5System.out.println(sum);
๐Ÿ› The bug is on line 3

๐Ÿ”ง Select the correct fix:

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep