if its a problem with the scanner, theres a good text class i got from a tutorial called TextIO that prints, gets input and other text related things with no problem.. just click the link TextIO.java at
Javanotes 5.0, Section 2.4 -- Text Input and Output
if its a problem with sumthing else i dont know.. btw just compile TextIO, get it in same folder and use either the TextIO.getlnInt(); method or TextIO.getlnDouble(); method or TextIO.getlnBoolean(); method theres on for all primitive types and string i think... use what you want in it