import View.UI; public class App { UI m; public static void main(String [] args){ System.out.println(\"Hello\"); UI n ; n.menu(); }}
Th
As it is, calling n.menu() will cause a NullPointerException since you never assign anything to it.
n.menu()
NullPointerException
You will need to do something like so: UI n = new ... or UI n = someObject.
UI n = new ...
UI n = someObject