怎样写main函数并求出结果?
package stty;
public class imooc1{
String name="爱慕课";
static String hobby="imooc";
public static void print(){
imooc1 Hy=new imooc1();
System.out.println("欢迎您"+Hy.name);
System.out.println("爱好"+hobby);
}
public void print1(){
System.out.println("欢迎您"+name);
System.out.println("爱好"+hobby);
}
}