About 1,120,000 results
Open links in new tab
  1. java.util.scanner - How can I read input from the console using the ...

    This Scanner class comes under java.util, hence the first line of the program is import java.util.Scanner; which allows the user to read values of various types in Java. The import statement line should have …

  2. eclipse - how to import java.util.Scanner - Stack Overflow

    Jun 20, 2021 · how to import java.util.Scanner Asked 4 years, 5 months ago Modified 4 years, 5 months ago Viewed 10k times

  3. How Can I Import java.util.Scanner into Eclipse?

    May 31, 2022 · import java.util.Scanner; // It should be above the class public class ClassName{ } I have had a lot of issues with Eclipse in the past (specifically with suggestions popping up). If you are …

  4. What does "import java.util.Scanner;" mean? - Stack Overflow

    Nov 15, 2017 · What do the import statements at the beginning of files mean? As an example, this program calculates the total price which includes sales tax: import java.util.Scanner; public class …

  5. "Scanner cannot be resolved to a type" how can i fix it?

    May 21, 2020 · You may look closer in the tutorial, first lines should have an "import" statement with the actual import of the Scanner class.

  6. Java "import java.util.Scanner" not working - Stack Overflow

    Jun 11, 2016 · java netbeans java.util.scanner netbeans-8.1 edited Jun 11, 2016 at 15:00 mjn 36.7k 30 185 392

  7. import java.util.scanner never used - Stack Overflow

    Oct 1, 2015 · 0 You are not using the import java.util.Scanner and so it says never used. You should just delete it. If you did use it though, you would need to input Scanner input = new Scanner(System.in); …

  8. java - Getting Keyboard Input - Stack Overflow

    Jul 9, 2013 · How do I get simple keyboard input (an integer) from the user in the console in Java? I accomplished this using the java.io.* stuff, but it says it is deprecated. How should I do it now?

  9. how to resolve the error while using Scanner class in java

    Feb 17, 2014 · `import java.util.Scanner;` You can keep the name sc for your Scanner but change java.util.Scanner in the body of your code to Scanner as you don't need to call the imported package …

  10. Errors when trying to use import java.util.Scanner

    Apr 28, 2018 · Errors when trying to use import java.util.Scanner Asked 7 years, 7 months ago Modified 6 years, 2 months ago Viewed 5k times