2022-12-08 14:58:44 +01:00
|
|
|
package domain;
|
|
|
|
|
2022-12-14 09:54:18 +01:00
|
|
|
import robot.exceptions.RobotException;
|
|
|
|
import robot.interfaces.Sorting;
|
2022-12-09 00:30:35 +01:00
|
|
|
public class C3PO extends RobotBasics {
|
2022-12-08 23:13:22 +01:00
|
|
|
public C3PO(int id, String name){
|
2022-12-09 01:38:11 +01:00
|
|
|
super(id, name);
|
2022-12-08 23:13:22 +01:00
|
|
|
}
|
|
|
|
|
2022-12-14 09:54:18 +01:00
|
|
|
@Override
|
|
|
|
public int[] think(int[] zahlen) throws RobotException {
|
|
|
|
return insertionSort.sorting(zahlen);
|
|
|
|
}
|
2022-12-09 10:45:51 +01:00
|
|
|
|
2022-12-14 09:54:18 +01:00
|
|
|
Sorting insertionSort = (int[] input) ->{
|
|
|
|
System.out.println("ich sortiere mit insertion-Sort");
|
|
|
|
return input;
|
|
|
|
};
|
2022-12-09 10:45:51 +01:00
|
|
|
|
2022-12-08 14:58:44 +01:00
|
|
|
}
|