public class ForLoop { public static void main(String[] args) { for (int i = 0, j = 1; i < 1, j < 2; i++) { System.out.print("i=" + i + "; "); System.out.print("j=" + j + "; "); j++; } } }
for (int i = 0, j = 1; i < 1; i++, j++) { ... }
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment