4
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by hanvyj
0

No idea what you want. In any case, there is only one int type in Java, 4 bytes signed. If you want more, use long or BigInteger, if you want less use short.

0

Me too, I'm baffled. Do you really want to convert a method name (System.out.println) to an int???
You need to explain exactly what it is you are trying to do!

Edited by JamesCherrill: n/a

0

pleas i am new to java. i wanted to write a console application that will request for two integers, then do sum,product and subtraction. then give me output. i was trying to convert the number i have input. i hope you could grab what i mean

0

You can use the Scanner class to read and parse input from the console. Look at the API documentation for Scanner - the very first example will help you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.