1public class forloop {
2 public static void main(String[] args) {
3 // for loop with two variable i & j
4 // i will start with 0 and keep on incrementing till 10
5 // j will start with 10 and keep on decrementing till 0
6 for (int i = 0, j = 10; i < 10 && j > 0; i++, j--) {
7 System.out.println("i = " + i + " :: " + "j = " + j);
8 }
9 }
10}