public class Arr_chabiao {
public static void main(String[] args) {
System.out.println(“请您输入数据”);
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
char [] arr = {'一','二','三','四','五','六','日'};
char c =week( arr, a);
System.out.println("星期"+c);
}
public static char week(char [] arr, int b){
char a = 0;
for (int i = 0;i<arr.length ;i++ ) {
if (b==(i+1)) {
a=arr[i];
}
}
return a;
}