Recent:
Archives:
Sign up for our technology specific newsletters.
Back to: www.javaworld.com/javaworld/javaqa/1999-07/03-qa-readchar.html.
when i try char c= System.in.read() it gives an error int cannot be changet to char since the return type of System.in.read()is int and not char what to do with this
Try using this char ch = (char)System.in.read();
i tried it..it worked..thanks a lot.. :)
More information about formatting options
Try using this char ch =
Try using this
char ch = (char)System.in.read();
Yeah
i tried it..it worked..thanks a lot.. :)
Post new comment