郸贤 发表于 2024-10-16 02:04:39

java

  import java.util.Random;
  public class Co
  {
  public static void main(String[] args)
  {
  Random a=new Random();
  char[] b=new char;
  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;
  }
  if (b1==b2)
  {
  System.out.println("什么都别做");
  }
  else
  {
  b=b1;
  }
  }for (int i=0;i<b.length ;b1++ )
  {
  System.out.print(b);
  }
  }
  }
   
   
   
   
   
   
   http://m.lifang521.com/tag/69590/
页: [1]
查看完整版本: java