Help me please
package zh.codegym.task.task04.task0413;
/*
星期几
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
String num = read.readLine();
int newNum = Integer.parseInt(num);
if(newNum > 0 | newNum < 8){
if(newNum == 1)
System.out.println("星期一");
if(newNum == 2)
System.out.println("星期二");
if(newNum == 3)
System.out.println("星期三");
if(newNum == 4)
System.out.println("星期四");
if(newNum == 5)
System.out.println("星期五");
if(newNum == 6)
System.out.println("星期六");
if(newNum == 7)
System.out.println("星期七");
}else
System.out.println("一周中没有这一天");
}
}