Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2011
    Rep Power

    Default Taking input from use


    I am new to Java. I want to take input from user/console.. for example if I am coding as

    System.out.print("Enter Name");

    I will get output as Enter Name and I need to enter my name. I need to know how can I do the coding for that in which I can feed the details both numeric or character.

    Kindly help me.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: Taking input from use

    Sounds like a job for the Scanner class. The API is your friend.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. Taking user input as a date and validation!
    By Junki3JJC in forum New To Java
    Replies: 3
    Last Post: 03-29-2011, 01:28 PM
  2. Problem with taking input and printing it.
    By equal in forum New To Java
    Replies: 3
    Last Post: 11-11-2010, 11:02 PM
  3. Taking args consisting of a scanner input
    By Implode in forum New To Java
    Replies: 1
    Last Post: 09-27-2009, 09:16 PM
  4. Taking input from Properties File
    By bugger in forum New To Java
    Replies: 4
    Last Post: 05-07-2008, 09:30 AM
  5. Taking input from console
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-05-2007, 05:47 PM

Posting Permissions

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