标签:int == java stat log str else port public
import java.util.*; public class Ge { public static void main(String[] args){ int row=7; for(int i=-row;i<=row;i++) { int a=(i<0)?-i:i; for (int j=0;j<=row*2 ;j++ ) { if(a==j || a==row*2-j) {System.out.print("*");} else{System.out.print(" "); } } System.out.println(); } } }
标签:int == java stat log str else port public
原文地址:http://www.cnblogs.com/zyy1130/p/6648485.html