Skip to content
Snippets Groups Projects
Commit 0d885db2 authored by Lahtinen Konsta Aleksi's avatar Lahtinen Konsta Aleksi
Browse files

viel vähä optimointia

parent e2eabf41
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ public class Laskuri {
this.th = new TiedostonHiplailija(osoite);
this.osoite = osoite;
List<String> tiedot = th.lueRivit();
th.suljeLukija();
th.sulje();
for(String t: tiedot) {
int id = Integer.parseInt(t.split("\\|")[0]);
int maara = Integer.parseInt(t.split("\\|")[1]);
......@@ -41,7 +41,7 @@ public class Laskuri {
for (String s : tallennusTiedot()){
th.kirjoita(s);
}
th.suljeKirjoittaja();
th.sulje();
}
public Laskuri(String[] tiedot,Tulkki tulkki) {
......
1|3
1|2
2|2
3|2
3|1
4|1
5|2
6|1
1|17.11.2025|Vuontee|aurinkoinen
2|16.11.2025|Tikkakoski|sateinen
3|11.05.2025|Laukaa|aurinkoinen
7|25.03.2025|Muurame|Aurinkoinen
4|20.03.2025|Keljo|aurinkoinen
5|19.03.2025|Rovaniemi|Aurinkoinen
7|12.03.2024|Laukaa|Pilvinen
1|7
2|2
1|6
2|1
3|2
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