There's the BufferedReader class, but if this is all you need to do I'd just use the Scanner class. May I ask why you don't want to use the Scanner class?