怎么运行不出来?
public class HelloWorld{ static int age; char sex; string name; public HelloWorld(){ age=20; System.out.println("通过静态初始化块初始age"); } { sex=男; System.out.println("通过初始化块初始化sex"); } { name=tom; System.out.println("通过构造方法初始化name"); } public static void main(String[] args){ HelloWorld hello=new HelloWorld(); System.out.println("姓名:"+hello.name,"性别:"+hello.name,"年龄:"+hello.age); } }