What is wrong with the following programs?
(a)
1 public class ShowErrors {
2 public static void main(String[] args) {
3 int i = 0;
4 do {
5 System.out.println(i + 4);
6 i++;
7 }
8 while (i<10)
9 }
10 }
(b)
1 public class ShowErrors {
2 public static void main(String[] args) {
3 for (int i = 0; i<10; i++);
4 System.out.println(i + 4);
5 }
6 }
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.