Results 1 to 3 of 3

Thread: scanner Class

  1. #1
    Join Date
    Nov 2010
    Posts
    18
    Rep Power
    0

    Post scanner Class

    /import java.util.Scanner;


    public class Takeinformation {
    public static void main(String []Args){
    Scanner myScanner=new Scanner(System.in);
    String input;
    System.out.println("Please Enter Your Name");
    input=myScanner.nextLine();
    System.out.println(input+" Welcome to Scanner");

    }

    }
    whats are the meanings of these???

    1.Scanner myScanner=new Scanner(System.in);
    2.input=myScanner.nextLine();
    :confused:

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Try looking at the API docs for Scanner.

  3. #3
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by masijade View Post
    Try looking at the API docs for Scanner.
    ^

    or read The Java™ Tutorials <- these tutorials.

Similar Threads

  1. Help with Scanner Class
    By VisionIncision in forum New To Java
    Replies: 7
    Last Post: 11-17-2010, 03:53 PM
  2. Using Scanner class in GUI
    By Indegon in forum New To Java
    Replies: 13
    Last Post: 11-12-2010, 11:50 PM
  3. Using the scanner class
    By danielwestjr in forum New To Java
    Replies: 1
    Last Post: 03-13-2009, 11:49 AM
  4. Scanner Class...
    By TheRocket in forum New To Java
    Replies: 5
    Last Post: 12-05-2008, 10:48 AM
  5. JDK 5.0 Scanner Class
    By Sircedric88 in forum New To Java
    Replies: 3
    Last Post: 07-27-2007, 07:55 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
  •