public class MultiplyTest
{
public static void main(String[] args){
for(int i = 1; i <= 9; i++){
for(int j = 1; j <= i; j++){
System.out.print(new Member(i, j));
}
System.out.println();
}
}
}
class Member{
int num1;
int num2;
public Member(int num1, int num2){
this.num1 = num1;
this.num2 = num2;
}
public String toString(){
return num1 + "*" + num2 + "=" + num1* num2 + "\t";
}
}
手工写的请采纳