Click to See Complete Forum and Search --> : how to accept user input data
sarath_777
Mar 5th, 2001, 04:49 PM
hi,
i am new to java.. i am trying to accept a user input
say Name (similar to inputbox in visual basic .. but no
GUI here..)..
What library should i use ?
i saw java.io.readFully .. Is it the one i have to use?
Please clarify..
thank
sarath
Dillinger4
Mar 5th, 2001, 04:58 PM
Do you want to take input from the command line or
using a GUI? Any GUI related stuff in contained in the java.awt or javax.swing API's.
As for the java.io.read fully i think your mixing up the
readFully() method with the java.io package.
public final void readFully(byte[] b) throws IOException
is a method in the DatainputStream class.
sarath_777
Mar 5th, 2001, 05:09 PM
hi,
i need input from command line..
so, which package should i have to use?
thanks..
sarath
Use the Dos Shell as "standard input" to read a line terminated by a carriage return.
The string array "args" in "main(String[] args)" is technically your command line if you only needed the command string that started your java application.
java.io is the correct package.
sarath_777
Mar 7th, 2001, 12:27 PM
thanks VirtuallyVB !..
that makes it clear !!
bye
sarath
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.