For a simple Java program where I want to make the program count from 10 to 1 by incrementing of 2 or 3 or 4 how would I change this code?
public class ExampleFor {
public static void main(String[] args) {
//
for(int i = 10; i > 0; i--){
System.out.println("i = " + i);
}
}
}