IBM interview question

Who to take input from console in java