I need to know when a user inputs two integers how to output just the odd numbers?
In java, there is a modulo operator, so you can determine whether an int is an odd or an even number . for example:

public void checkNumber(int x) {


if (x % 2 == 0) {

// then we have an even number

System.out.println(x + " is an even number")

}


if (x % 2 != 0) {

// then we have an odd number

System.out.println(x + " is an odd number")

}


}


If you are looking for ways to read those ints in for a miniprogram, then you could look at a Scanner object at
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html