fix tests
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
Bruder John 2024-07-03 20:27:29 +02:00
parent 0e512161a0
commit ed25868ff7
3 changed files with 6 additions and 25 deletions

View File

@ -3,10 +3,10 @@ public class CallMethodFromObjekt {
public int firstInt;
public Car ca;
public int speed(){
public int speed() {
return ca.getSpeed();
}
}
public class Car{
@ -16,5 +16,4 @@ public class Car{
return speed;
}
}
}

View File

@ -1,11 +1,12 @@
public class CorrectMemberAccess{
public class CorrectMemberAccess {
public Car c;
public int test(){
public int test() {
return c.getSpeed();
}
}
private class Car{
@ -15,5 +16,4 @@ private class Car{
return speed;
}
}
}

View File

@ -17,25 +17,8 @@ public class FullTest {
for (int i = 0; i < 5; i++) {
}
}
// void logicalOperations() {
// // Logische UND-Operation
// if (b && a > 5) {
//// System.out.println("a ist größer als 5 und b ist wahr");
// }
//
// // Logische ODER-Operation
// if (b || a < 5) {
//// System.out.println("b ist wahr oder a ist kleiner als 5");
// }
// }
// public static void main(String[] args) {
// AllFeaturesClassExample obj = new AllFeaturesClassExample(12, true, 'a');
// obj.controlStructures();
// }
}
public class Test {
@ -60,6 +43,5 @@ public class Car {
return speed;
}
}
}