import java.util.Random;
public class Co
{
public static void main(String[“> args)
{
Random a=new Random();
char[“> b=new char[4″>;
for (int i=0;i<b.length ;i++ )
{
int a1=a.nextInt(26);
char b1=(char)(65+a1);
for (int j=0;j<b.length ;j++ )
{
char b2=b[j”>;
}
if (b1==b2)
{
System.out.println(“什么都别做”);
}
else
{
b[i”>=b1;
}
}for (int i=0;i<b.length ;b1++ )
{
System.out.print(b[i”>);
}
}
}
java
import java.util.Random;
public class Co
{
public static void main(String[“> args)
{
Random a=new Random();
char[“> b=new char[4″>;
for (int i=0;i<b.length ;i++ )
{
int a1=a.nextInt(26);
char b1=(char)(65+a1);
for (int j=0;j<b.length ;j++ )
{
char b2=b[j”>;
}
if (b1==b2)
{
System.out.println(“什么都别做”);
}
else
{
b[i”>=b1;
}
}for (int i=0;i<b.length ;b1++ )
{
System.out.print(b[i”>);
}
}
}