Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ohj2
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
jokayli
ohj2
Commits
4735f80d
Commit
4735f80d
authored
1 month ago
by
jokayli
Browse files
Options
Downloads
Patches
Plain Diff
Kayttaja luokka käyttää nyt uutta hallit luokkaa sen sijaan että olisi lista halleista
parent
5ab44684
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
ht/src/padelRekisteri/Kayttaja.java
+5
-10
5 additions, 10 deletions
ht/src/padelRekisteri/Kayttaja.java
with
5 additions
and
10 deletions
ht/src/padelRekisteri/Kayttaja.java
+
5
−
10
View file @
4735f80d
...
@@ -18,10 +18,8 @@ public class Kayttaja {
...
@@ -18,10 +18,8 @@ public class Kayttaja {
private
String
sukupuoli
=
""
;
private
String
sukupuoli
=
""
;
private
static
int
seuraavaId
=
1
;
private
static
int
seuraavaId
=
1
;
/**
* Taulukko halleille
private
Hallit
hallit
=
new
Hallit
();
*/
private
Collection
<
Halli
>
hallit
=
new
ArrayList
<
Halli
>();
public
void
asetaTestiArvot
()
{
public
void
asetaTestiArvot
()
{
Random
rand
=
new
Random
();
Random
rand
=
new
Random
();
...
@@ -64,13 +62,10 @@ public class Kayttaja {
...
@@ -64,13 +62,10 @@ public class Kayttaja {
* lisää halli käyttäjän tietoihin
* lisää halli käyttäjän tietoihin
*/
*/
public
void
lisaaHalli
(
Halli
halli
)
{
public
void
lisaaHalli
(
Halli
halli
)
{
hallit
.
add
(
halli
);
hallit
.
lisaa
(
halli
);
}
}
/**
public
Hallit
getHallit
()
{
* Iteraattori hallien läpikäyntiä varten
return
hallit
;
*/
public
Iterator
<
Halli
>
iterator
()
{
return
hallit
.
iterator
();
}
}
}
}
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