public class Test {
public static void main(String args[])throws IOException{
String str[][]=new String[3][];
BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i<3;i++){
str[i]=in.readLine(); //显示这里有问题,为什么?谢谢~~
}
for(int i=0;i<3;i++){
System.out.println(str[i]);
}
}
}
public static void main(String args[])throws IOException{
String str[][]=new String[3][];
BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i<3;i++){
str[i]=in.readLine(); //显示这里有问题,为什么?谢谢~~
}
for(int i=0;i<3;i++){
System.out.println(str[i]);
}
}
}
for (int i = 0; i < 3; i++) {
str[3][i] = in.readLine();
}
....
public static void main(String args[])throws IOException{
String str[]=new String[3];
BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i <3;i++){
str[i]=in.readLine(); //显示这里有问题,为什么?谢谢~~
}
for(int i=0;i <3;i++){
System.out.println(str[i]);
}
}
}