Endabgabe #20

Merged
i22035 merged 137 commits from Endabgabe into main 2024-07-05 11:59:47 +00:00
3 changed files with 10 additions and 2 deletions
Showing only changes of commit 97aadb9ba8 - Show all commits

View File

@ -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());

View File

@ -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));
}
}

View File

@ -14,4 +14,11 @@ public class Loops {
}
return count;
}
public int For(int a) {
for(int i = 0; i < a; i++) {
}
return i + 2;
}
}