Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
secondWeekLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cosmina.dunca
secondWeekLab
Commits
ec2f70fd
Commit
ec2f70fd
authored
Feb 14, 2022
by
cosmina.dunca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exercise4
parent
4a34f456
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
App.class
src/App.class
+0
-0
App.java
src/App.java
+9
-1
No files found.
src/App.class
0 → 100644
View file @
ec2f70fd
File added
src/App.java
View file @
ec2f70fd
...
...
@@ -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."
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment