import java.awt.*;
import java.awt.event.*;public class MyApp extends Frame
{
public MyApp()
{
this.addWindowListener (new WindowAdapter(){
public void windowClosing(WindowEvent e){
dispose();
System.exit(0);
}
});
}
public String[][] tt()
{
int i =3;
int p =9;
String s[][] = new String[i][p];
s[0][0] = "a";
return s;
}
public static void main(String args[])
{
System.out.println("Starting App");
MyApp f = new MyApp();
String s[][] = f.tt();
System.out.println(s[0][0]);
f.setSize(100,100);
f.show();
}
}
import java.awt.event.*;public class MyApp extends Frame
{
public MyApp()
{
this.addWindowListener (new WindowAdapter(){
public void windowClosing(WindowEvent e){
dispose();
System.exit(0);
}
});
}
public String[][] tt()
{
int i =3;
int p =9;
String s[][] = new String[i][p];
s[0][0] = "a";
return s;
}
public static void main(String args[])
{
System.out.println("Starting App");
MyApp f = new MyApp();
String s[][] = f.tt();
System.out.println(s[0][0]);
f.setSize(100,100);
f.show();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货