用static声明的函数只能调用static声明的函数和变量
你的程序中public static void main() 不能调用boolean check()必须把check()声明为 static boolean check()