class Peng {
public static void main(String[] args){
//定义整型数组
int[] arr = {11,21,32,48,54};
//调用遍历方法
bianli(arr);
//调用最大值方法
int max = zuizhi(arr);
System.out.println("最大值为:"+max);
//调用查找索引方法
int suo = suoyin(arr,54);
System.out.println(suo);
//调用逆序方法
nixu(arr);
bianli(arr);
//定义字符串类型数组
String[] time = {"星期一","星期二","星期三","星期四","星期五","星期六","星期天"};
//创建键盘录入对象
Scanner sc = new Scanner(System.in);
System.out.println("请输入数组的索引(0-6)");
int x = sc.nextInt();
//根据输入的索引输出对应的数据
System.out.println(time[x]);
}