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
d73fe499
Commit
d73fe499
authored
Feb 14, 2022
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ver 4
parent
4d7c5ee8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
App.java
src/App.java
+39
-3
No files found.
src/App.java
View file @
d73fe499
...
@@ -36,8 +36,45 @@ public class App {
...
@@ -36,8 +36,45 @@ public class App {
}
}
// Exercise 5 - Branching - switch
// Exercise 5 - Branching - switch
int
month
=
1
;
int
month
=
3
;
// Ex 5.1
switch
(
month
)
{
case
1
:
System
.
out
.
println
(
"January"
);
break
;
case
2
:
System
.
out
.
println
(
"February"
);
break
;
case
3
:
System
.
out
.
println
(
"March"
);
break
;
case
4
:
System
.
out
.
println
(
"April"
);
break
;
case
5
:
System
.
out
.
println
(
"May"
);
break
;
case
6
:
System
.
out
.
println
(
"June"
);
break
;
case
7
:
System
.
out
.
println
(
"July"
);
break
;
case
8
:
System
.
out
.
println
(
"August"
);
break
;
case
9
:
System
.
out
.
println
(
"September"
);
break
;
case
10
:
System
.
out
.
println
(
"October"
);
break
;
case
11
:
System
.
out
.
println
(
"November"
);
break
;
case
12
:
System
.
out
.
println
(
"December"
);
break
;
}
// Exercise 6 - Looping - for loop
// Exercise 6 - Looping - for loop
// Exercise 7 - Looping - while(), do{} while()
// Exercise 7 - Looping - while(), do{} while()
...
@@ -50,4 +87,3 @@ public class App {
...
@@ -50,4 +87,3 @@ public class App {
}
}
}
}
\ No newline at end of file
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