Pr_robot_factory/Main.java

24 lines
503 B
Java
Raw Normal View History

import domain.C3PO;
2022-12-08 14:46:33 +01:00
public class Main {
public static void main(String[] args) {
C3PO Herbert = new C3PO(0, "Herbert");
int[] input = {6,5,4,3,2,1};
//just some testing
/*C3PO Herbert = new C3PO(0, "Herbert");
int[] input = {6,5,4,3,2,1};
Herbert.triggerPowerSwitch();
try{
String asString = Herbert.speak(input);
System.out.println(asString);
}catch(RobotException re){
System.out.println(re);
}
2022-12-08 14:46:33 +01:00
*/
2022-12-08 14:46:33 +01:00
}
}