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 int firstInt;
public Car ca; public Car ca;
public int speed(){ public int speed() {
return ca.getSpeed(); return ca.getSpeed();
} }
}
public class Car{ public class Car{
@ -17,4 +17,3 @@ public class Car{
} }
} }
}

View File

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

View File

@ -17,25 +17,8 @@ public class FullTest {
for (int i = 0; i < 5; i++) { 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 { public class Test {
@ -60,6 +43,5 @@ public class Car {
return speed; return speed;
} }
}
} }