public interface Test { public static final int NUMBER_ONE = 1; public static final int NUMBER_TWO = 2; }and the class:
import static Test.*; public class TestClass { public static void main(String[] args) { System.out.println(NUMBER_ONE + NUMBER_TWO); } }