Remix.run Logo
abhiyerra a day ago

I learned to read line as the following in Java 1.2 so the Scanner class is new to me. :p

  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
  String input = in.readLine();
riffraff a day ago | parent [-]

Yep, same for me, it's been a long time since I did java and while the publicstaticvoidmain mantra felt familiar I was a bit confused by the Scanner thing and couldn't say why.

sammyo a day ago | parent [-]

Same here, oddly pleased that the Scanner class is deprecated before I even knew about it.