摘要:
给定一个student类,类中有两个属性ID,Score.对一组student类对象排序,写出方法。 阅读全文
posted @ 2015-09-14 15:25 骄阳照林 阅读(146) 评论(0) 推荐(0)
|
|
|
|
摘要:
给定一个student类,类中有两个属性ID,Score.对一组student类对象排序,写出方法。 阅读全文
posted @ 2015-09-14 15:25 骄阳照林 阅读(146) 评论(0) 推荐(0)
摘要:
思路“num &(num-1)==0 返回true,否者返回false。代码如下:boolean isPower(int num){ if(num<=0) return false; if((num & (num-1))==0) return true; else return fal... 阅读全文
posted @ 2015-09-14 15:19 骄阳照林 阅读(133) 评论(0) 推荐(0) |
|