How do I fix this do get an output counting down?
public class Main {
public static void main(String[] args) {
Main.countDownTo(5, 1);
}
public static void countDownTo(int from, int to) {
for( int counter = from; from <= to; from--) {
System.out.print(counter + ",");
}
}
}