return sum == num ;等价于if else 是因为比较返回的是true或false,只返回一个值。
javaSE-第96篇-带参带返回类型方法 2
猜你喜欢
转载自blog.csdn.net/qq_30944107/article/details/88779963
今日推荐
周排行