Home Article Practice Java代码练习

Java代码练习

2021-07-15 17:22  views:1137  source:程序猿    

byte short int long float double boolean char
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;}



Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)