Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions exercise1.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
| |___ ___) | | / __/| |_| | | (_) |
|_____|____/___| |_____|\___/|_|\___/


*/

public class exercise1 {
Expand All @@ -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
Expand Down Expand Up @@ -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");
}
Expand Down