Friday, December 14, 2012

Java Tutorial 5 Source Code

public class Tutorial { public static void main(String[] args) { byte age = 20; if (age >= 18 && age < 21) System.out.println("I welcomed you to this program."); else if (age >= 21) System.out.println("You're a grown person!"); else System.out.println("You are a minor. Get out!"); } }

No comments:

Post a Comment