You are viewing a single comment's thread. Return to all comments →
static Scanner in=new Scanner(System.in); static int B=in.nextInt(); static int H=in.nextInt(); static boolean flag=true;
why did we add static? couldn't get.I am new for Java.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Static Initializer Block
You are viewing a single comment's thread. Return to all comments →
static Scanner in=new Scanner(System.in); static int B=in.nextInt(); static int H=in.nextInt(); static boolean flag=true;
why did we add static? couldn't get.I am new for Java.