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
Printable View
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
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.
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.
thanks VirtuallyVB !..
that makes it clear !!
bye
sarath