Merge remote-tracking branch 'origin/Endabgabe' into Endabgabe
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
commit
97aadb9ba8
@ -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