public class Something {public static void main(String[] args) {Something s = new Someth public static void main(String[] args) {Something s = new Something();System.out.println("s.doSomething() returns " + doSomething());}public String doSomething() {return "Do something ...";}}看上去很完美。 参考答案 查看答案