【发布时间】:2012-10-29 19:34:07
【问题描述】:
可能重复:
What is the Java ?: operator called and what does it do?
您好,我在理解闲置代码时遇到了一些问题,有人可以帮我解决这个问题吗?
private Comparable elementAt( BinaryNode t ) {
return t == null ? null : t.element;
}
我不明白t == null ? null : t.element; 是什么意思。
【问题讨论】:
-
gefei 有问题,我没有问方法声明,否则我会指定的。投票应该不止于此。
-
感谢您的帮助尝试,但其他人已经帮助了我。
标签: java