请大神帮帮忙 1 2 1 2 3 2 1 2 3 4 3 2 1 2 3 45 4 3 2 1 2 3 4 5这个数字三角怎么用java实现?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public static void main(String[] args) throws Exception { int row = 9; //行数,可任意修改 String margin =" "; //数字见得空白 for(int i = 1; i <= row; i++){ for(int j = 0; j < row - i; j++){ System.out.print(margin+margin); } for(int j = i; j > 0; j--){ System.out.print(j+margin); } for(int j = 2; j <= i; j++){ System.out.print(j+margin); } System.out.println(); } } 吸血鬼数字 applet中重复接收键盘的输入会死机,怎么回事? 昨天考公务员碰到一个超难数字关系推理题!!!!!!!!!!!!!!!!!!!!! java线程的问题 关于byte[]与string之间的转换 有技术的来赚钱吧,做题目,接项目都可以 菜问题........ 如何通过Applet调用Windows应用程序? 关于session的一个奇怪问题!!高手请进!! WIN2000 VS JBUILDER5 在JTable中如何设置两个表格中只能选中其中一个表格中的一行 请用java代码实现JavaBean
public static void main(String[] args) throws Exception {
int row = 9; //行数,可任意修改
String margin =" "; //数字见得空白
for(int i = 1; i <= row; i++){
for(int j = 0; j < row - i; j++){
System.out.print(margin+margin);
}
for(int j = i; j > 0; j--){
System.out.print(j+margin);
}
for(int j = 2; j <= i; j++){
System.out.print(j+margin);
}
System.out.println();
}
}