import java.util.Scanner;
public class IfDemo {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.println("明天天晴吗?(y/其它字符)");
char answer=input.next().charAt(0);
if(answer=='y')
{
System.out.println("可以去海边玩啦");
}
}
}
报错:java 12: error illegal character:'/uff1b'
System.out.println("可以去海边玩啦");