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

hups pikku korjaus viel

parent ecc08ebd
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,12 @@ public class Laskuri {
private HashMap<Integer,Integer> arvot = new HashMap<>();
private Tulkki tulkki;
private TiedostonHiplailija th;
private String osoite;
public Laskuri(String osoite, Tulkki tulkki) {
this.tulkki = tulkki;
this.th = new TiedostonHiplailija(osoite, false);
this.th = new TiedostonHiplailija(osoite);
this.osoite = osoite;
List<String> tiedot = th.lueRivit();
th.suljeLukija();
for(String t: tiedot) {
......@@ -35,6 +37,7 @@ public class Laskuri {
}
public void tallenna() {
th = new TiedostonHiplailija(osoite,false);
for (String s : tallennusTiedot()){
th.kirjoita(s);
}
......
......@@ -7,7 +7,7 @@ import Luokat.*;
/**
* Test class made by ComTest
* @version 2025.03.27 12:55:29 // Generated by ComTest
* @version 2025.03.27 13:23:25 // Generated by ComTest
*
*/
@SuppressWarnings({ "PMD" })
......
package fxKaljoja.test;
// Generated by ComTest BEGIN
import static org.junit.Assert.*;
import org.junit.*;
import fxKaljoja.*;
// Generated by ComTest END
/**
* Test class made by ComTest
* @version 2025.03.27 13:23:03 // Generated by ComTest
*
*/
@SuppressWarnings({ "PMD" })
public class KalojaGUIControllerTest {
}
\ No newline at end of file
1|2
1|3
2|2
3|1
3|2
4|1
5|2
6|1
1|4
2|5
1|7
2|2
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