连击 天
fork: star:
我们知道浮点数是无法在计算机中准确表示的,例如0.1在计算机中只是表示成了一个近似值,因此,对付点数的运算时结果具有不可预知性。 在进行数字运算时,如果有double或float类型的浮点数参...
有时候我们希望队列里的数据按照自己想要的顺序排序,这时就需要用到Comparable接口了,下面我来演示一个简单的例子
比如一个Integer代表一个属性,那么多个Integer就代表多个属性,这时候位置是没有意义的,那么要怎么判断它们拥有同样的属性呢?
简单的方法 InetAddress addr = InetAddress.getLocalHost(); ip=addr.getHostAddress().toString;//获得本机IP address=addr.getHostName()toString;//获得本机名称 但是这个方法...
一、线程池的创建 我们可以通过ThreadPoolExecutor来创建一个线程池。 new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, milliseconds,runnableTaskQueue, han...
application/andrew-inset ez application/mac-binhex40 hqx application/mac-compactpro cpt application/mathml+xml mathml application/msword doc application/octet-stream bin dms lha...
没有更多内容
加载失败,请刷新页面
没有更多内容
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复