Java Stdin and Stdout II

  • + 0 comments

    try it :- scan.nextLine(); after double so that when the next line is entered that contains string can be taken into the input buffer otherwise the double is continued for the next and it doesn't find the double value intead it's a string .It depends on editor also