main is a static method - it runs without any instance of NumberCheck.
But in3050 is an instance method, so it needs an instance of NumberCheck to run.
You can either
make in3050 static (quick fix, but heading in the wrong direction for understanding object oriented proramming)
or
in main, create a new instance of NumberCheck, and use that to call in3050 (whic is how things usually go in an object oriented program)
ps: next time you post a problem, include a complete copy of the compiler or runtime error message(s) so we don't have to guess what the problem is.