【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