import View.UI;
public class App {
UI m;
public static void main(String [] args){
System.out.println(\"Hello\");
UI n ;
n.menu();
}}
Th
public static void main(String [] args){
System.out.println("Hello");
UI n =AssignUIOBjectHere ;
n.menu();
}}
Method's local variables
needs to be initialize, before they are using.
Compiler complaining that you are using a variable which is not yet initialized.
As per language specification
Every variable in a program must have a value before its value is used: