import java.util.Random;
class Demo111 {
      public static void main(String[] args) 
      {
         String[] str={
               "A","B","C","D","E","F","G","H"
         };
         Random r=new Random();
         int index=r.nextInt(str.length);
         System.out.println("点到了"+str[index]);

      }
}

 

posted on 2018-07-17 13:44  九九九九  阅读(599)  评论(0编辑  收藏  举报