Pr_robot_factory/domain/C3PO.java

21 lines
454 B
Java
Raw Normal View History

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 {
public C3PO(int id, String name){
super(id, name);
}
2022-12-14 09:54:18 +01:00
@Override
public int[] think(int[] zahlen) throws RobotException {
return insertionSort.sorting(zahlen);
}
2022-12-14 09:54:18 +01:00
Sorting insertionSort = (int[] input) ->{
System.out.println("ich sortiere mit insertion-Sort");
return input;
};
2022-12-08 14:58:44 +01:00
}