import java.io.*;(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/bianchengyuyan/)
class Make9square{
public static void main(String[]args){
String []p=new String[9];byte b;
for(int i=1;i=9;i++){
p[i-1]="";
for(int j=1;j=i;j++){
p[i-1]=p[i-1]+j+"*"+i+"="+i*j+" ";
}
p[i-1]=p[i-1]+"
";
}
try{
FileOutputStream out=new FileOutputStream("Test804.out");
for(int i=0;i9;i++){
for(int j=0;jp[i].length();j++){
b=(byte)p[i].charAt(j);
out.write(b);
}
}
}
catch(Exception ex){System.out.println(ex.getMessage());}
}
}
import java.io.*;(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/bianchengyuyan/)
class Get9square{
public static void main(String args[]){
try{
FileInputStream in=new FileInputStream("Test804.out");
int b=in.available();
String a="";
for(int i=1;i=b;i++){
a=a+(char)(in.read());
}
System.out.println(a);
}
catch(Exception ex){System.out.println(ex.getMessage());}
}
}