package hoge; class A{ public void main(String[] args){ } } class B { public static void main(String[] args) { C.print(); } } class C{ public static void print(){ System.out.println("Hello World!"); } }