java生成随机数字和字母组合 java编写一个程序:假设一个车牌号码由三个字母和四个数字组成,编写一个程序,随机生成一个车牌?
java编写一个程序:假设一个车牌号码由三个字母和四个数字组成,编写一个程序,随机生成一个车牌?public class Hello{public static void main(String[]a
java编写一个程序:假设一个车牌号码由三个字母和四个数字组成,编写一个程序,随机生成一个车牌?
public class Hello{
public static void main(String[]args){
char c1=(char)(int)(数学.随机()*26 65)
字符c2=(字符)(int)(数学.随机()*26 65)
字符c3=(字符)(int)(数学.随机()*26 65)
int x1=(int)(数学.随机()*10)
int x2=(int)(数学.随机()*10)
int x3=(int)(数学.随机()*10)
内景x4=(内景)(数学.随机()*10)
系统打印(c1)系统打印(c2)系统打印(c3)系统打印(x1)系统打印(x2)系统打印(x3)系统打印(x4)
}
}