java console input

Posted by Bipul on Stack Overflow See other posts from Stack Overflow or by Bipul
Published on 2010-05-25T04:45:03Z Indexed on 2010/05/25 4:51 UTC
Read the original article Hit count: 442

Filed under:

The data type of the any input through console (as i do using BufferedReader class) is String.After that we type cast it to requered data type(as Inter.parseInt() for integer).But in C we can take input of any primitive data type whereas in java all input types are neccerily String.why it is so????

© Stack Overflow or respective owner

Related posts about java