Skip to content
Snippets Groups Projects
Commit 91dd77c9 authored by Eirik Martin Danielsen's avatar Eirik Martin Danielsen :speech_balloon:
Browse files

fixed a problem

parent 74e41a6a
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ public class Controller {
//get the thought manager and add the thought to the manager
ThoughtManager tm = ThoughtManager.getInstance();
tm.add(t);
tm.displayList();
}
}
......@@ -20,7 +20,7 @@ public class ThoughtManager {
private List<Thought> thoughts = new ArrayList<>();
private Text textfield;
//string NOTE! veit ikke om vi burde gjøre detta for i veit ikke ka man kan gjøre:
private String text = "";
private String text = new String();
public void makeList()
{
Thought t = new Thought("yeet1");
......@@ -36,6 +36,7 @@ public class ThoughtManager {
}
void initialize(Text text)
{
this.textfield = text;
}
void displayList()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment