Commit ec2f70fd authored by cosmina.dunca's avatar cosmina.dunca

Exercise4

parent 4a34f456
File added
......@@ -15,6 +15,14 @@ public class App {
String introductionString = "My name is Inigo Montoya"; // Ex 1.8
String reminderString = "You killed my father"; // Ex 1.9
String threatString = "Prepare to die hahaha!"; // Ex 1.10
System.out.println(greetingString + ", " + introductionString + ", " + reminderString + ", " + threatString); // Ex 1.11
// System.out.println(greetingString + ", " + introductionString + ", " + reminderString + ", " + threatString); // Ex 1.11
// Exercise 4
int fingersOnRightHand = 5;
if(fingersOnRightHand == 6) {
System.out.println(greetingString + ", " + introductionString + ", " + reminderString + ", " + threatString); // Ex 1.11
} else {
System.out.println("I am searching for the man who killed my father.");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment