1 import java.util.*; 2 3 public class SixDuo { 4 public void eat(){ 5 System.out.println("狗狗吃骨头"); 6 } 7 public static void main(String[] args){ 8 Ar ...
分类:
其他好文 时间:
2016-09-15 16:35:28
阅读次数:
136
/*超强布尔表达式 * 1.“与”运算符 * if((左侧条件==true)&&(右侧条件==true)){//在这里执行相关代码} * 2.“或”运算符 * if((左侧条件==false)||(右侧条件==true)){/在这里执行行馆代码} * 3.“非”运算符 * int类型 if(valu ...
分类:
其他好文 时间:
2016-09-15 16:36:02
阅读次数:
159
/*4.非Animal呢?为何不写个万用类 * 类Object是JAVA里多有类的源头/父类*/ ...
分类:
其他好文 时间:
2016-09-15 16:33:41
阅读次数:
114
1 class Animala{ 2 void makeNoise(){ 3 System.out.println("动物在嘶吼"); 4 } 5 } 6 class Dogs extends Animala{ 7 void makeNoise(){ //重写 8 System.out.printl ...
分类:
其他好文 时间:
2016-09-15 16:34:24
阅读次数:
134
1. Python视频 B. 装饰器 B-1 装饰器流程剖析 第4周作业 2. MOOC - 用Python玩转数据 -> 完成 作业:寻找第n个默尼森数。 P是素数且M也是素数,并且满足等式M=2**P-1,则称M为默尼森数。 3. MOOC - 数据库技术及应用 第1周:走进数据库 ****** ...
分类:
其他好文 时间:
2016-09-15 16:34:06
阅读次数:
172
1 public class Sheji extends Animals{ //继承Animal 2 void makeNoise(){ //重写makeNoice方法 3 System.out.println(name+"汪汪汪!"); 4 } 5 void eat(){ 6 System.out ...
分类:
其他好文 时间:
2016-09-15 16:33:26
阅读次数:
160
包括两种计算方法:精确计算和近似计算 每种方法可以实现三种模式的点云密度计算,CC里面的点云计算依赖于已知近邻距离对应的八叉树层级 (通过findBestLevelForAGivenNeighbourhoodSizeExtraction()方法实现) 在GeometricalAnalysisTool ...
分类:
其他好文 时间:
2016-09-15 16:32:15
阅读次数:
318
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-09-15 16:33:51
阅读次数:
134
1 public class Shuzuduixiangxingwei { 2 private int size; 3 private String name; 4 5 public int getSize(){ 6 return size; 7 } 8 public void setSize(in ...
分类:
其他好文 时间:
2016-09-15 16:32:02
阅读次数:
104
单例模式的五种实现写法:懒汉、饿汉、双重检验锁、静态内部类、枚举。线程安全的实现方式 懒汉式: public class Singleton { private static Singleton instatnce; private Singleton(){} public static synch ...
分类:
其他好文 时间:
2016-09-15 16:31:40
阅读次数:
126
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the ...
分类:
其他好文 时间:
2016-09-15 16:31:23
阅读次数:
105
效果: 在一个table里显示很多的小图,每点击一个图片,显示一张大图。小图的html<td><img height='120px' width='200px' src="图片地址..." onclick="showBigImg('{$vo['img']}')"/></td>显示大图的modal<! ...
分类:
其他好文 时间:
2016-09-15 16:30:26
阅读次数:
147
/*变量的比较 * 1.==用于比较两个基础数据类型时只比较字节组合 * ==用于比较对象类型时只比较两个对象是否指向同一对象 * 2.equals()方法用于比较两个对象的实际意义是否相等*/ ...
分类:
其他好文 时间:
2016-09-15 16:29:47
阅读次数:
116
/*1.对象应该长什么样子 * abstract 类型的类不能用于new对象*/ ...
分类:
其他好文 时间:
2016-09-15 16:28:15
阅读次数:
144
分块这种思路很常见,就是把一个数列划分成k块,然后在块的基础上进行操作。 假如每块的大小为magic,那么长度为n的数列则一共会划分成ceil(n/magic)块。这样会有一些性质: 1.原数列第i个的块号为i/magic,是块内的第i%magic个(不过这一条没有用)。 2.假如i%magic== ...
分类:
其他好文 时间:
2016-09-15 16:27:19
阅读次数:
160