1. JBuilder2005 I am Child Father like music. Father like dancing.
漏了 I am Father. 对不起 I am Father I am Child Father like music. Father like dancing.
1. 结果 I am Father I am Child Father like music. Father like dancing.2.程序 class test1 { public static void main(String[] args) { int maxa=5; for(int i=1;i<=maxa;i++){ for(int j=1;j<=i;j++){ System.out.print(j+" "); } System.out.print("\n"); }
} }3. 结果 apple!
第一个到底是:I am Father I am Child Father like music. Father like dacing 还是:I am Child Father like music. Father like dancing.?????我很菜,,,请教!
在JBuilder2005中 1. 结果 I am Father I am Child Father like music. Father like dancing.3. 结果 apple!
第一个 I am Father I am Child Father like music. Father like dacing 2. 用递归方法编写一个java程序,输出如下数字塔: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5public class Test { public static void main(String[] args) { print(5); } public static void print(int n) { if(n>1) print(n-1); for(int i=1;i<=n;i++) { System.out.print(i); } System.out.println("");
I am Child
Father like music.
Father like dancing.
I am Father
I am Child
Father like music.
Father like dancing.
I am Father
I am Child
Father like music.
Father like dancing.2.程序
class test1
{
public static void main(String[] args)
{
int maxa=5;
for(int i=1;i<=maxa;i++){
for(int j=1;j<=i;j++){
System.out.print(j+" ");
}
System.out.print("\n");
}
}
}3. 结果
apple!
I am Child
Father like music.
Father like dacing
还是:I am Child
Father like music.
Father like dancing.?????我很菜,,,请教!
1. 结果
I am Father
I am Child
Father like music.
Father like dancing.3. 结果
apple!
I am Father
I am Child
Father like music.
Father like dacing
2. 用递归方法编写一个java程序,输出如下数字塔:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5public class Test
{
public static void main(String[] args)
{
print(5);
}
public static void print(int n)
{
if(n>1)
print(n-1);
for(int i=1;i<=n;i++)
{
System.out.print(i);
}
System.out.println("");
}
3. 结果
apple!
好了,结帐算分