I have a class A with a static nested class inside it called B:
A
B
import static A.B.*; class A { static class B { static
It should be
import .A.B.*;
If A is in the default package, this will fail.
Last, it's not a good practice to import *. Just import only the things that you need, in this case - import static .A.B.x; if you're gonna use only the x variable.
*
import static .A.B.x;
x