thenewboston

Java Programming Tutorial - 11 - Logical Operators

Aug 22nd, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public class apples{
  2.    public static void main(String args[]){
  3.       int boy, girl;
  4.       boy = 18;
  5.       girl = 68;
  6.      
  7.       if (boy > 10 && girl < 60){
  8.          System.out.println("You can enter");
  9.       }else{
  10.          System.out.println("You cannot enter");
  11.       }
  12.    }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment