deleted debug code
parent
b6150d2254
commit
5cc917bbd3
|
@ -35,16 +35,12 @@ public class RobotFactory {
|
||||||
case C3P0 -> {
|
case C3P0 -> {
|
||||||
int serialNumberC3P0;
|
int serialNumberC3P0;
|
||||||
do{
|
do{
|
||||||
// String temp = String.format("%04d", r.nextInt(1000)+10000);
|
|
||||||
serialNumberC3P0 = r.nextInt(10000)+10000;
|
serialNumberC3P0 = r.nextInt(10000)+10000;
|
||||||
if(!serialNumbersC3P0.contains(serialNumberC3P0)){
|
if(!serialNumbersC3P0.contains(serialNumberC3P0)){
|
||||||
serialNumbersC3P0.add(serialNumberC3P0);
|
serialNumbersC3P0.add(serialNumberC3P0);
|
||||||
usedSerialNumber = false;
|
usedSerialNumber = false;
|
||||||
}
|
}
|
||||||
}while(usedSerialNumber);
|
}while(usedSerialNumber);
|
||||||
//Debug output
|
|
||||||
System.out.println(serialNumberC3P0);
|
|
||||||
//
|
|
||||||
return new C3PO(serialNumberC3P0);
|
return new C3PO(serialNumberC3P0);
|
||||||
}
|
}
|
||||||
case R2D2 -> {
|
case R2D2 -> {
|
||||||
|
@ -57,9 +53,6 @@ public class RobotFactory {
|
||||||
usedSerialNumber = false;
|
usedSerialNumber = false;
|
||||||
}
|
}
|
||||||
}while(usedSerialNumber);
|
}while(usedSerialNumber);
|
||||||
//Debug output
|
|
||||||
System.out.println(serialNumberR2D2);
|
|
||||||
//
|
|
||||||
return new R2D2(serialNumberR2D2);
|
return new R2D2(serialNumberR2D2);
|
||||||
}
|
}
|
||||||
default -> {
|
default -> {
|
||||||
|
|
Loading…
Reference in New Issue