I am trying to use Console class to get input from user but a null object is returned when I call System.console(). Do I have to change anything before using Sy
System.console()
Use System.in
http://www.java-tips.org/java-se-tips/java.util/how-to-read-input-from-console.html