摘要: 方法一: (数据类型)(最小值+Math.random()*(最大值-最小值+1)) 举例: (int)(1+Math.random()*(10-1+1)) 生成1~10的随机数。 方法二: (数据类型)最小值+Math.random()*最大值 举例: (int)(1+Math.random()* 阅读全文
posted @ 2017-08-19 21:07 菜鸟更要虚心学习 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 首先,注明本篇博客是参考 http://ningg.top/tool-personal-intellij-idea-for-mac-optimize/ 该篇博文而写,在此鸣谢作者! 正文部分: 近期使用IDEA编程调试时发现debug功能启动变得巨慢,小程序亦是如此,遂在网上查找可能引起问题的原因。 阅读全文
posted @ 2017-08-19 11:08 菜鸟更要虚心学习 阅读(6232) 评论(2) 推荐(2) 编辑
摘要: 题目描述:两句话发人深思啊。。。。 Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) w 阅读全文
posted @ 2017-08-19 09:36 菜鸟更要虚心学习 阅读(130) 评论(0) 推荐(0) 编辑