"Gregory W. Ernest" <Ge*****@optonline.net> wrote in
news:KR*****************@fe10.lga:
I am new to Java programming and I was wondering if anyone can tell me
the java equivalent to a cin>>...; that is normally used in c++. I
want to get user input and automatically assign it to a variable. So
in other words what would be the equivant java statement of this c++
statement:
1: cout<<"Enter a number.";
2: cin>>x; //This is what I really want to know. I already know the
java equivalent of the first statement.
Are you looking for something like?
byte [] b=new byte[255];
System.in.read(b);
I strongly recommend that you download the J2SDK HTML documentation and
put in on your machine. You then have the complete class heirarchy
reference available to view at will.
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---