【Java】二重循环示例:打印* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

public class Test
{
   public static void main(String[] args)
   {
      int i,j;
      for(i=1;i<=5;i++)
      {
         for(j=1;j<=8;j++)
         {
            System.out.print(" *");
         }
         System.out.println();
      }
   }
}

原文地址:https://www.cnblogs.com/HGNET/p/13360464.html