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
15 changes: 7 additions & 8 deletions exercise1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
| |___ ___) | | / __/| |_| | | (_) |
|_____|____/___| |_____|\___/|_|\___/


*/

public class exercise1 {
Expand All @@ -15,32 +14,32 @@ public class exercise1 {
//Strings are alphanumerical words that inlcude nearly any character/
//Replace this String with your name and favorite food!

String name = "TheLegend27";
String favFood = "waffles";
String name = "Jacob";
String favFood = "Pasta";


//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

Double gasPrice = 3.48;
Double gasPrice = 3.30;

//Boolean are values that are either true or false
//Replace this boolean value with true or false for the following question

//Are you a student at IIT?

boolean yesOrNo = false;
boolean yesOrNo = true;

//Characters are values with 1 letter from A-Z and they use single quotes ''
//Replace this char with your first and last initials

char firstInitial = 'a';
char lastInitial = 'z';
char firstInitial = 'j';
char lastInitial = 'c';


//Run this file after making changes and see what you have!
Expand Down