public void setPoint(Double point) {
this.point = point;
}
とセッターがある時
setPoint(algorithm != null ? algorithm.getPoint() : 0D);
と記述されているのですが、「?」と「:」がどのような役割を果たしているのか理解できません。
ご教授お願いします。
回答3件
あなたの回答
tips
プレビュー
投稿2016/02/13 05:09
public void setPoint(Double point) {
this.point = point;
}
とセッターがある時
setPoint(algorithm != null ? algorithm.getPoint() : 0D);
と記述されているのですが、「?」と「:」がどのような役割を果たしているのか理解できません。
ご教授お願いします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/02/13 05:29