Java代码练习
Arrays.sort(arr);
String line = "thinking in java";
System.out.println(c);
public private pro
public FlyingObject nexOne(){
Random ran = new Random();
int type = ran.nextInt(20);
if (type<5){
return new Bee();
}else if (type<13){
return new Airplane();
}else {
return new BigAirplane();}
public void enterAction(){
enterIndex++;
if (enterIndex%40==0){
FlyingObject obj = nexOne();
enemies = Arrays.copyOf(enemies,enemies.length+1);
enemies[enemies.length-1] = obj;}