I have to do a project and I'm totally stuck. It pops up an input window and say you type in "23" It needs to print out: 3 2 0 Basically hundredths place but in reverse. This is what I have so far: Code: String s = JOptionPane.showInputDialog("Enter an integer"); int num = Integer.parseInt(s); // turns a String into an int. if num = negative num = num * -1 else num = num * 1 int ones = num % 10; int tens = (num % 10) - ones; System.out.println(ones); System.out.println(tens); } } The "negative" is just a place holder until I find out how to say if a number is negative, times it by -1 to make it positive. So far only "ones" is printed out right....I don't know how to get the tens place to print out correctly. Halp me?