int from java.lang.System.in - TechRepublic
General discussion
December 25, 2001 at 05:20 PM
tekkalan

int from java.lang.System.in

by tekkalan . Updated 24 years, 6 months ago

I am learning java an I just want to get an int from the console. I seem to only find a reliable way to get a byte. I can’t even get a char[] very reliably either. Does anyone have a suggestion on how the get an int from the user using System.in?

This discussion is locked

All Comments