Endabgabe #20
@ -41,7 +41,7 @@ public class Main {
|
||||
}
|
||||
else {
|
||||
try {
|
||||
CharStream codeCharStream = CharStreams.fromPath(Paths.get("src/test/resources/input/endabgabeTests/Person.java"));
|
||||
CharStream codeCharStream = CharStreams.fromPath(Paths.get("src/test/resources/input/endabgabeTests/working/Loops.java"));
|
||||
compileFile(codeCharStream, "src/test/resources/input/endabgabeTests");
|
||||
} catch (IOException e) {
|
||||
System.err.println("Error reading the file: " + e.getMessage());
|
||||
|
@ -1,5 +1,6 @@
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
Person testPerson = new Person(5);
|
||||
Loops loop = new Loops();
|
||||
System.out.println(loop.For(6));
|
||||
}
|
||||
}
|
@ -14,4 +14,11 @@ public class Loops {
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
public int For(int a) {
|
||||
for(int i = 0; i < a; i++) {
|
||||
|
||||
}
|
||||
return i + 2;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user