# 数组问题

Hmilyl 2006-04-19 07:14:22

[9,0]
[8,0] [8,1]
[7,0] [7,1] [7,2]
[6,0] [6,1] [6,2] [6,3]
[5,0] [5,1] [5,2] [5,3] [5,4]
[4,0] [4,1] [4,2] [4,3] [4,4] [4,5]
[3,0] [3,1] [3,2] [3,3] [3,4] [3,5] [3,6]
[2,0] [2,1] [2,2] [2,3] [2,4] [2,5] [2,6] [2,7]
[1,0] [1,1] [1,2] [1,3] [1,4] [1,5] [1,6] [1,7] [1,8]
[0,0] [0,1] [0,2] [0,3] [0,4] [0,5] [0,6] [0,7] [0,8] [0,9]
...全文
135 5 点赞 打赏 收藏 举报

5 条回复

Flowing_air 2006-04-20

• 打赏
• 举报

lzj34 2006-04-20

• 打赏
• 举报

hanjienihao1 2006-04-20
class ArrayOutput
{
public static void main(String[] args)
{
for(int i=9;i>=0;i--) {
for(int j=0;j<=9-i;j++){
System.out.print("["+i+","+j+"]");
if(j == 9-i) System.out.println();
}
}
}
}
• 打赏
• 举报

btb368 2006-04-20

for(int i=9;i>=0;i--) {
for(int j=0;j<=9-i;j++){
System.out.print("["+i+","+j+"]");
}
System.out.println();
}
• 打赏
• 举报

btb368 2006-04-20
for(int i=9;i>=0;i--) {
for(int j=0;j<=9-i;j++){
System.out.println("["+i+","+j+"]");
}
}
• 打赏
• 举报

Java SE

6.2w+

Java 2 Standard Edition

2006-04-19 07:14