Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AplikacjaALX
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Patryk Czarnik
AplikacjaALX
Commits
72e9f773
Commit
72e9f773
authored
May 09, 2024
by
patryk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Programy hellołwordowe
parent
c0d9ca2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
DzienTygodnia.java
src/main/java/hello/DzienTygodnia.java
+26
-0
Hello.java
src/main/java/hello/Hello.java
+9
-0
No files found.
src/main/java/hello/DzienTygodnia.java
0 → 100644
View file @
72e9f773
package
hello
;
import
java.util.Random
;
public
class
DzienTygodnia
{
public
static
void
main
(
String
[]
args
)
{
Random
random
=
new
Random
();
int
numer
=
random
.
nextInt
(
1
,
8
);
String
dzien
=
switch
(
numer
)
{
case
1
->
"poniedziałek"
;
case
2
->
"wtorek"
;
case
3
->
"środa"
;
case
4
->
"czwartek"
;
case
5
->
"piątek"
;
case
6
->
"sobota"
;
case
7
->
"niedziela"
;
default
->
"nie powinno się to zdarzyć"
;
};
System
.
out
.
println
(
"Dzień numer "
+
numer
+
" to jest "
+
dzien
);
}
}
src/main/java/hello/Hello.java
0 → 100644
View file @
72e9f773
package
hello
;
public
class
Hello
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello Maven!"
);
}
}
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