Java Static import
Static import is a feature that provides the facility to access static members of a class directly without using a class name. Java Static import Example package com.w3schools.display; public class Display { public static void displayText(String text){ System.out.println(text); } } package test; import static com.w3schools.display.Display.*; public class Test { public static void main(String args[]){ displayText(“Hello … Read more