【发布时间】:2011-05-16 16:32:53
【问题描述】:
我是 Java 新手,但不是编程新手(我通常使用 Ruby 编写代码)。我在 Java 代码示例中看到的一件事是使用 而不是 () 将参数传递给对象。下面是一个代码示例(取自 Google Web Toolkit 教程):
public void onValueChange(ValueChangeEvent<String> event) {
String token = event.getValue();
// depending on the value of the token, do whatever you need
...
}
这与演员阵容有关还是其他原因?有人可以向我解释这意味着什么或用于什么吗?谢谢!
【问题讨论】:
标签: java