Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
k2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tie
ohj2
esimerkit
k2022
Commits
e8b1039b
Commit
e8b1039b
authored
3 years ago
by
Vesa Lappalainen
Browse files
Options
Downloads
Patches
Plain Diff
tulosta
parent
d3a090c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
luennot/live13/src/kerho/Jasen.java
+28
-1
28 additions, 1 deletion
luennot/live13/src/kerho/Jasen.java
with
28 additions
and
1 deletion
luennot/live13/src/kerho/Jasen.java
+
28
−
1
View file @
e8b1039b
...
...
@@ -9,13 +9,40 @@ import java.io.PrintStream;
*/
public
class
Jasen
{
private
int
tunnusNro
;
private
String
nimi
=
""
;
private
String
hetu
=
""
;
private
String
katuosoite
=
""
;
private
String
postinumero
=
""
;
private
String
postiosoite
=
""
;
private
String
kotipuhelin
=
""
;
private
String
tyopuhelin
=
""
;
private
String
autopuhelin
=
""
;
private
int
liittymisvuosi
=
0
;
private
double
jmaksu
=
0
;
private
double
maksu
=
0
;
private
String
lisatietoja
=
""
;
/**
* Alustaa jäsenen tiedot tyhjiksi
*/
public
Jasen
()
{
// ei edes tarviisi
}
/**
* Tulostetaan henkilön tiedot
* @param out tietovirta johon tulostetaan
*/
public
void
tulosta
(
PrintStream
out
)
{
out
.
println
(
"Aku"
);
out
.
println
(
String
.
format
(
"%03d"
,
tunnusNro
)
+
" "
+
nimi
+
" "
+
hetu
);
out
.
println
(
" "
+
katuosoite
+
" "
+
postinumero
+
" "
+
postiosoite
);
out
.
println
(
" k: "
+
kotipuhelin
+
" t: "
+
tyopuhelin
+
" a: "
+
autopuhelin
);
out
.
print
(
" Liittynyt "
+
liittymisvuosi
+
"."
);
out
.
println
(
" Jäsenmaksu "
+
String
.
format
(
"%4.2f"
,
jmaksu
)
+
" e."
+
" Maksettu "
+
String
.
format
(
"%4.2f"
,
maksu
)
+
" e."
);
out
.
println
(
" "
+
lisatietoja
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment