Skip to content

Commit 0cefe4c

Browse files
första push, även gjort ändringar i MainTest.java för tillåtelse av snyggare output
1 parent 5d8144c commit 0cefe4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/example/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public static void main(String[] args) {
8484
else {
8585
dagensDatum = LocalDate.now();
8686
}
87+
8788
ElpriserAPI.Prisklass zon;
8889

8990
if (zoneOf == null || !validZones.contains(zoneOf.toUpperCase())) {
@@ -129,10 +130,9 @@ public static void main(String[] args) {
129130
}
130131
//Metod som anropas om det inmatats ett felaktigt argument
131132
private static void ifInvalidChoice() {
132-
boolean isHelped;
133133
System.out.println("Ogiltigt val, du skickas nu till hjälpmeny");
134134
helpMe();
135-
isHelped = true;
135+
136136
}
137137
// metod för --help att skickas till if-sats
138138
public static void helpMe() {

0 commit comments

Comments
 (0)