Results 1 to 5 of 5

Thread: how to accept user input data

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    65

    Lightbulb

    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

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    65

    yes

    hi,
    i need input from command line..
    so, which package should i have to use?


    thanks..
    sarath

  4. #4
    Guest

    Thumbs up Rename ReadLine_java.txt to ReadLine.java

    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.
    Attached Files Attached Files

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    65

    thanks... sorry for responding late..

    thanks VirtuallyVB !..
    that makes it clear !!
    bye
    sarath

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width