import java.util.Scanner;
/**
* 1、依次输入5句话后将它们逆序输出;(改下标)
* Created by Administrator on 2018/12/3.
*/
public class Text01 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
String[] input1=new String[5];
System.out.println("请输入5句话:");
for (int i = 0; i <input1.length ; i++) {
System.out.print("第"+(i+1)+"句话:");
input1[i]=input.next();
}
System.out.println("逆序输出5句话:");
for (int i=input1.length-1;i>=0;i--) {
System.out.println(input1[i]);
}
}
}