dhust
8/1/2013 - 8:25 PM

Operators - || (OR)

Operators - || (OR)

public static void main(String[] args) {

  int a = -4;

	if ( (a < 0) || (a > 10) ) {
		System.out.println("a is less than 0 or greater than 10.");
	}

}