herrDeng網內搜尋

自訂搜尋

Ads

2016年11月11日 星期五

ex10 請用static method改寫"我會"

請用static method改寫"我會"

15 則留言:

A10533004易廷軒 提到...

public class ex1 {

public static void drawTriangle(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}
public static void main(String[] args) {
drawTriangle();

}

}

A10533006林柏宇 提到...

public class ex1 {
private static void drawTriangle() {
int i, j;
for ( i = 7; i >= 1; i=i-2 ) {
for ( j = 1; j <= i; j++ )
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}

public static void main(String[] args) {
drawTriangle();

}
}

A10533014 提到...

public class dfdgfdefge {

public static void drawTriangle(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}
public static void main(String[] args) {
drawTriangle();

}


}

A10533009 提到...

package aaa;

public class aaaa {
public static void drawTriangle(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();

}
}

public static void main(String[] args) {
drawTriangle();
}

}

A10533012 提到...

public class bb {

public static void ee(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}

public static void main(String[] args) {

ee();
}

}

A10533010 提到...

public class ex1 {
public static void aa(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();

}
}
public static void main(String[] args) {

aa();

}

}

A10533013 提到...

public class ex10 {
public static void aa(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}
public static void main(String[] args) {

aa();
}
}

A10533003 提到...

public class zx2 {

public static void drawTriangle(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}
public static void main(String[] args) {
drawTriangle();

}
}

A10533007 提到...

public class asdfasf {
public static void drawTriangle(){
for(int i=7;i>=1;i=i-2){
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();
}
}
public static void main(String[] args) {
drawTriangle();

}
}

A10533005 提到...

public class ex10 {
public static void Ican(){
int n=7;
for(int i=1;i<=4;i++){
for(int j=7;j>=i*2-1;j--)
System.out.print("我會");
System.out.print(n);
System.out.println();
n=n-2;
}
}
public static void main(String[] args) {
Ican();

}

}

A10533011 提到...

public class ex1 {
public static void ican(){
int n=7;
for(int i=1;i<=4;i++){
for(int j=7;j>=i*2-1;j--)
System.out.print("我會");
System.out.println(n);
n=n-2;
}
}

public static void main(String[] args) {
ican();
}
}

A10533001 提到...

public class zxz1z1 {
public static void free(){
int z=7;
for (int a=1;a<=4;a++){
for(int s=7;s>=a*2-1;s--)
System.out.print("我會");
System.out.println(z);
z=z-2;
}


}
public static void main(String[] args) {

free();

}

}

A10533002 提到...

public class hello {
public static void lin(){
for(int i=7;i>=1;i=i-2) {
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println(); }
}
public static void main(String[] args) {
lin();




}
}

A10533016 提到...

public class a123 {
private static void Milly(){
for(int i=7;i>=1;i=i-2) {
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();}


}

public static void main(String[] args) {
Milly();


}
}

B10233077 提到...

public class a123 {
private static void Milly(){
for(int i=7;i>=1;i=i-2) {
for(int j=1;j<=i;j++)
System.out.print("我會");
System.out.print(i);
System.out.println();}


}

public static void main(String[] args) {
Milly();


}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章