let someone help me here:
int k;
k = Convert.ToInt32(System.out.println)
thanks.
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.
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!
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
See the API docs for the Integer class.
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.
When you put System.out.println() do you actually to read input? notice the "out" and the "println", this is for printing a line to the console. To read a line from the console, type "java reading console" into google, the first link explains it pretty well.
http://www.java-tips.org/java-se-tips/java.util/how-to-read-input-from-console.html
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.