package tom.jiafei; class Tom{ void speak(){ System.out.println("Tom类在tom.jiafei包中"); } } public class E12 { public static void main(String args[]){ Tom cat=new Tom(); cat.speak(); System.out.println("E412类也在tom.jfiia包中"); }
}