package p1; public class Test{ public void display(){ System.out.println("in method display()"); } }//源代码片段来自云代码http://yuncode.net