package domain; import robot.interfaces.Sorting; import java.util.Arrays; public class R2D2 extends RobotBasics { /** * Constructor * @param id> int * @param name> String */ public R2D2(int id, String name){ super(id, name); } public String sorting(int[] arr) { //Selectionsort int small; for (int i = 0; i 1) { for (int i = 1; i < arr.length; i++) { result += "," + arr[i]; } } } return result; } }