哪里有问题?
import java.util.Scanner;
public class Something {
public static void main(String[] args) {
Something s = new Something();
System.out.println("s.doSomething() returns " + s.doSomething());
}
public String doSomething() {
return "Do something ...";
}
} |
|