From b2b9e64dc3779e4c59cdd7af3fb34c84669acab3 Mon Sep 17 00:00:00 2001 From: Toyin277 <40902265+Toyin277@users.noreply.github.com> Date: Wed, 11 Jul 2018 07:51:11 -0500 Subject: [PATCH] Updated age and phrase if less than 16 --- exercise1.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exercise1.java b/exercise1.java index 0f6e120..a27160b 100644 --- a/exercise1.java +++ b/exercise1.java @@ -6,6 +6,7 @@ | |___ ___) | | / __/| |_| | | (_) | |_____|____/___| |_____|\___/|_|\___/ + */ public class exercise1 { @@ -21,7 +22,7 @@ public static void main(String[] args){ //Intergers are whole numbers that are either positive or negative, or 0. //Replace this integer with your age! - int age = 46; + int age = 18; //Doubles are numbers that have decimals and are positive or negative //Replace this Double with the gas prices in Chicago @@ -49,7 +50,7 @@ public static void main(String[] args){ if(age == 69){ System.out.println("N i c e!"); } else if(age < 16){ - System.out.println("Wait w h a t"); + System.out.println("Wait w h a t, no!"); } else if(age > 19){ System.out.println("Oof"); }