摘要:
使用openGL步骤:1.创建GLSurfaceView对象2.创建GLSurfaceView.renderer实现类.3.设置activity的contentView,以及设置view的render对象.4.实现render类的过程.a.onSurfaceCreate()方法1.设置清屏的颜色和启... 阅读全文
摘要:
Random类的常用方法方法备注IntnextInt()返回一个int类型的随机数IntnextInt(n)返回一个0到n之间的数,不包括nDoublenextDouble()返回一个0-1之间的数FloatnextFloat()返回一个0-1之间的数LongnextLong()返回一个长整形/**... 阅读全文
摘要:
/************Calendar的使用**************///public static void main(String[] args) {//Calendar calendar = Calendar.getInstance();//不能通过new创建,只能通过getInsta... 阅读全文