deleted debug code

main
Stefan 2022-12-26 17:08:37 +01:00
parent b6150d2254
commit 5cc917bbd3
1 changed files with 0 additions and 7 deletions

View File

@ -35,16 +35,12 @@ public class RobotFactory {
case C3P0 -> {
int serialNumberC3P0;
do{
// String temp = String.format("%04d", r.nextInt(1000)+10000);
serialNumberC3P0 = r.nextInt(10000)+10000;
if(!serialNumbersC3P0.contains(serialNumberC3P0)){
serialNumbersC3P0.add(serialNumberC3P0);
usedSerialNumber = false;
}
}while(usedSerialNumber);
//Debug output
System.out.println(serialNumberC3P0);
//
return new C3PO(serialNumberC3P0);
}
case R2D2 -> {
@ -57,9 +53,6 @@ public class RobotFactory {
usedSerialNumber = false;
}
}while(usedSerialNumber);
//Debug output
System.out.println(serialNumberR2D2);
//
return new R2D2(serialNumberR2D2);
}
default -> {