Java Programming Tutorial – 11 – Logical Operators

By | 2015년 8월 2일


package apples;

public class apples {

    public static void main(String[] args) {
		int boy, girl;
		boy = 18;
		girl =68;
		
		if(boy > 10 && girl < 60){
			System.out.println("you can enter");
		}else{
			System.out.println("You can not enter");
		}
	}

}