You are viewing a single comment's thread. Return to all comments →
Why static?...can you explain?
because we are calling in public static void main(String args)
Because you used new BufferedReader(new InputStreamReader(in)); like this. the "in" is a static import from System.in
If you had not used static import the above statement would look like this
new BufferedReader(new InputStreamReader(System.in));