About 3,070,000 results
Open links in new tab
  1. Static import in Java - GeeksforGeeks

    May 9, 2024 · In Java, static import concept is introduced in 1.5 version. With the help of static import, we can access the static members of a class directly without class name or any object.

  2. Java Packages - W3Schools

    Import a Package There are many packages to choose from. In the previous example, we used the Scanner class from the java.util package. This package also contains date and time facilities, random …

  3. Import Statement in Java - GeeksforGeeks

    Jul 23, 2025 · Static import statement: By using static import statements in Java, we can access data members or member functions of a class directly without the use of a fully-qualified name.

  4. Everything You Need to Know about Java Packages and Import Statements

    Feb 10, 2025 · Since Java 5, we can use the import statements to refer to static members (fields and methods) of a type (class or interface). For example, the Math class has several static fields like E …

  5. What does the "static" modifier after "import" mean?

    Oct 2, 2008 · The static modifier after import is for retrieving/using static fields of a class. One area in which I use import static is for retrieving constants from a class.

  6. Javaのimport文を徹底解説|基本構文・使い方・エラー対策まで初心 …

    Dec 29, 2025 · Javaのimport文について、基本構文から使い方、よくあるエラーや名前の衝突対策まで丁寧に解説します。初心者にも理解しやすいコード例やFAQを掲載。ワイルドカードやstatic …

  7. Java import Keyword - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

  8. How to Import Package in Java? - GeeksforGeeks

    Jul 30, 2025 · For example, the java.util package has classes like ArrayList, Scanner and many others that we can use every day. Importing a Package in Java There are two main ways to import in Java, …

  9. Java编程中的import语句:`import java.util.*;`与`import java.util

    Apr 15, 2024 · 本文详细比较了Java编程中两种常见的导入语句`import java.util.*;`和`import java.util.Scanner;`,分析了它们的使用场景和优缺点,并引入了百度智能云文心快码(Comate)作 …

  10. import Keyword in Java: Usage & Examples - DataCamp

    Learn how to use the `import` keyword in Java to include classes and packages efficiently, enhancing code readability and maintainability. Includes syntax, examples, and best practices.