java杂记02

1.DecimalFormat数字格式化

2.(char)('a'+Math.random()*('z'-'a'+1));可以生成a-z的随机字符

3.

4.instanceof判断数据类型

5.在list中不能重复添加相同的元素,在set中可以重复添加显示出来

posted on 2016-12-12 12:10  ShamSilence  阅读(182)  评论(0编辑  收藏  举报

导航