为什么我输出的是空值 求解释一下
public class Test{ String name; String sex; static int age; public void mingzi(){ name="如意"; System.out.println(name); } public void xingbie(){ sex="女"; System.out.println(sex); } public static void nianling(){ age=22; System.out.println(age); } public void show(){ System.out.println("名字"+name+"年龄"+age+"性别"+sex); } public static void main(String[] args){ Test hello=new Test(); hello.show(); } }