diff --git a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java
index b835759..186a1ba 100644
--- a/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java
+++ b/src/main/java/edu/ntnu/idi/idatt2003/g40/mappe/Main.java
@@ -1,17 +1,18 @@
package edu.ntnu.idi.idatt2003.g40.mappe;
-//TIP To Run code, press or
-// click the icon in the gutter.
+import java.io.IOException;
+import java.util.List;
+
public class Main {
static void main() {
- //TIP Press with your caret at the highlighted text
- // to see how IntelliJ IDEA suggests fixing it.
- IO.println(String.format("Hello and welcome!"));
-
- for (int i = 1; i <= 5; i++) {
- //TIP Press to start debugging your code. We have set one breakpoint
- // for you, but you can always add more by pressing .
- IO.println("i = " + i);
+ FileParser parser1 = new FileParser("src/main/resources/dummydata.txt");
+ FileConverter converter1 = new FileConverter();
+ try {
+ List stocksInFile = converter1.getStocksFromStrings(parser1.readFile());
+ parser1.writeStocksToFile(converter1.stocksToStrings(stocksInFile));
+ stocksInFile.forEach(s -> System.out.println(s.getSymbol()));
+ } catch (IOException e) {
+ System.err.println(e.getMessage());
}
}
}