Posted by Muhammad Ali Shah on 2000-04-09
Hi, I am new to Java. What is the equivalent of the following in Java: o cout << anInteger o cout << aCharacter o cin >> anInteger o someCharacter = getch() Please do help me out. An assignment is due tomorrow. Its a linked list assignment - I have done all other things (ie the functions are working when called with proper parameters) but user input is not working. I have tried System.in.read and DataInputStream.readInt, but have failed to use them properly. Muhammad Ali Shah web: www.redrival.com/mufta email: mashah@xxxxx.xxx.xx [BCS V - FAST Institute of Computer Science, Karachi] To signoff send a mail to listserver@xxxx.xx.xx with "signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home