Java Stdin and Stdout II

  • + 15 comments

    Where do you not understand? please explain your problem to get your solution;

    Here, Input Format:

    There are three lines of input:

    The first line contains an integer. The second line contains a double. The third line contains a String.

    Here is main code:

    int i = scan.nextInt();
    double d = scan.nextDouble();
    scan.nextLine();
    String s = scan.nextLine();