小编Xyz*_*Xyz的帖子

为什么不返回值?

public class Test {

    public String xyz(){
        String name="stack";
        return name;
    }

    public static void main(String[] args) {

        Test t=new Test();
        t.xyz(); //this should stack isn't it??
    }
}
Run Code Online (Sandbox Code Playgroud)

java

-6
推荐指数
1
解决办法
51
查看次数

标签 统计

java ×1