Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
alx_java1
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
alx_java1
Commits
7a542a9f
Commit
7a542a9f
authored
Aug 06, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Klasa Osoba - przedstawSie
parent
01dc7273
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Osoba.java
src/main/java/p09_klasy/Osoba.java
+5
-0
Przyklad1.java
src/main/java/p09_klasy/Przyklad1.java
+2
-0
No files found.
src/main/java/p09_klasy/Osoba.java
View file @
7a542a9f
...
...
@@ -4,4 +4,9 @@ public class Osoba {
String
imie
,
nazwisko
;
int
wiek
;
void
przedstawSie
()
{
System
.
out
.
println
(
"Nazywam się "
+
imie
+
" "
+
nazwisko
+
" i mam "
+
wiek
+
" lat."
);
}
}
src/main/java/p09_klasy/Przyklad1.java
View file @
7a542a9f
...
...
@@ -8,5 +8,7 @@ public class Przyklad1 {
a
.
wiek
=
30
;
System
.
out
.
println
(
a
);
System
.
out
.
println
(
a
.
imie
+
" "
+
a
.
nazwisko
);
System
.
out
.
println
();
a
.
przedstawSie
();
}
}
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