Sign in to follow this  

[java] java input help

This topic is 3729 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well I come from a knowledge of C++ and it has been quite easy to learn java, however I am unable to get input right... What is the equivalent to a c++ int age; std::cin >> age; std::cout << "You are " << age << " years of age.\n"; please help :(

Share this post


Link to post
Share on other sites
I googled for a java console input page and got one of these, it should explain some... and it's gotta be a bit complicated but it's got a good reason to be.

http://pages.cs.wisc.edu/~cs302/io/JavaIO.html



I was curious also, because after mucking about in java for over 6 years, I've never actually captured the console in... but coming up I'm probobly going to need to rebuild my TEE utility which captures console input and spits it back out to the console as well as pipes it to a file.

Share this post


Link to post
Share on other sites

This topic is 3729 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this