import java.util.Scanner;
public class A01 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner (System.in);
System.out.println("请输入5句话:");
String[] names = new String [5];
for (int i = 0; i
System.out.print("第"+(i+1)+"句话:");
names[i]=input.next();
}
System.out.println("逆序输出的5句话为:");
for (int i = names.length-1; i >=0; i--) {
System.out.println(names[i]);
}
}
}