Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
the hurlers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Herman Andersen Dyrkorn
the hurlers
Commits
864f6114
Commit
864f6114
authored
4 years ago
by
Eirik Martin Danielsen
Browse files
Options
Downloads
Patches
Plain Diff
hardcoded list
parent
f938db49
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
Resolve "Display list"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sample/Main.java
+2
-0
2 additions, 0 deletions
src/sample/Main.java
src/sample/Thought.java
+1
-1
1 addition, 1 deletion
src/sample/Thought.java
src/sample/ThoughtManager.java
+20
-1
20 additions, 1 deletion
src/sample/ThoughtManager.java
with
23 additions
and
2 deletions
src/sample/Main.java
+
2
−
0
View file @
864f6114
...
...
@@ -13,6 +13,8 @@ public class Main extends Application {
Parent
root
=
FXMLLoader
.
load
(
getClass
().
getResource
(
"sample.fxml"
));
primaryStage
.
setTitle
(
"Hurl your thoughts"
);
primaryStage
.
setScene
(
new
Scene
(
root
,
700
,
498
));
ThoughtManager
tm
=
new
ThoughtManager
();
tm
.
makeList
();
primaryStage
.
show
();
}
...
...
This diff is collapsed.
Click to expand it.
src/sample/Thought.java
+
1
−
1
View file @
864f6114
package
sample
;
public
class
Thought
{
p
rivate
String
thoughtText
;
p
ublic
String
thoughtText
;
}
This diff is collapsed.
Click to expand it.
src/sample/ThoughtManager.java
+
20
−
1
View file @
864f6114
...
...
@@ -3,5 +3,24 @@ package sample;
import
java.util.List
;
public
class
ThoughtManager
{
private
List
<
Thought
>
thoughts
;
public
List
<
Thought
>
thoughts
;
public
void
makeList
()
{
Thought
t
=
new
Thought
();
t
.
thoughtText
=
"yeet"
;
Thought
t2
=
new
Thought
();
t2
.
thoughtText
=
"yeet1"
;
Thought
t3
=
new
Thought
();
t3
.
thoughtText
=
"yeet2"
;
Thought
t4
=
new
Thought
();
t4
.
thoughtText
=
"yeet3"
;
Thought
t5
=
new
Thought
();
t5
.
thoughtText
=
"yeet4"
;
this
.
thoughts
.
add
(
t
);
this
.
thoughts
.
add
(
t2
);
this
.
thoughts
.
add
(
t3
);
this
.
thoughts
.
add
(
t4
);
this
.
thoughts
.
add
(
t5
);
}
}
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