Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Datainputstream and Scanner

807600Oct 17 2007 — edited Oct 17 2007
Hi
Few days back, I had to use Scanner to read strings from keyboard. I tried to do same to read integers...but it didn't work and had to use something called DataInputStream...

why is it so ? what is the difference between these ???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2007
Added on Oct 17 2007
1 comment
1,040 views