Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ex1 programing 2
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
elijah vasquez
ex1 programing 2
Commits
9f0868dc
Commit
9f0868dc
authored
Feb 14, 2022
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ver 5
parent
d73fe499
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
App.java
src/App.java
+9
-1
No files found.
src/App.java
View file @
9f0868dc
...
...
@@ -36,7 +36,14 @@ public class App {
}
// Exercise 5 - Branching - switch
int
month
=
3
;
// Ex 5.1
int
month
=
8
;
// Ex 5.1
// Ex 5.2
if
(
month
<
1
)
{
System
.
out
.
println
(
"Not a valid month"
);
}
else
if
(
month
>
12
)
{
System
.
out
.
println
(
"Not a valid month"
);
}
switch
(
month
)
{
case
1
:
System
.
out
.
println
(
"January"
);
...
...
@@ -76,6 +83,7 @@ public class App {
break
;
}
// Exercise 6 - Looping - for loop
// Exercise 7 - Looping - while(), do{} while()
...
...
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