how do i reverse an order of numbers starting with the input and working it's way down
import java.io.*; import java.util.*; public class question4 { public static void main(String[] args)throws IOException { // Set up an input buffer for reading input values BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); // Set up an output buffer for writing results to PrintWriter output = new PrintWriter(System.out); // Read in values String line1 = input.readLine(); // Convert string into int int x = Integer.parseInt(line1); // Output answers for(int i=0; i<=x;i+=3){ output.println(i + " ");} // clean up output buffer output.flush(); } }