public class TestB { public static void permutation(String str,Set set){ if(str==null) return; int len=str.length(); if(len==0 || len==1)return; ...
分类:
其他好文 时间:
2015-12-13 23:39:01
阅读次数:
142
public class TestB { public static void permutation(String str,Set set){ if(str==null) return; int len=str.length(); if(len==0 || len==1)return; ...
分类:
其他好文 时间:
2015-12-13 23:26:44
阅读次数:
151
原文:http://quweiprotoss.blog.163.com/blog/static/4088288320144810567471/广告点击率预测屈伟/ Koala++先声明一下,本文所提到的所有的点击率预测的技术不是我在的团队使用的,因为我们团队使用的技术是保密的,所以我也不知道他们是怎...
分类:
其他好文 时间:
2015-12-13 20:17:36
阅读次数:
252
我国有句说是这样说的“自己动手,丰衣足食”;哪么下面我们就来看一个自给自足的示例:class Mainphone{ public static Assemlb getAssemlb(string type) { Assemlb assemlb=null; if(type=="手机1号"...
分类:
其他好文 时间:
2015-12-13 17:01:46
阅读次数:
136
现在在Demo.txt中存在数据:ABC需要将ABC从文本文件中读取出来代码片:import java.io.*;class FileReaderDemo{ public static void main(String[] args) throws IOException { ...
分类:
编程语言 时间:
2015-12-13 15:18:54
阅读次数:
165
1、C++中的static_cast执行非多态的转换,用于代替C中通常的转换操作。因此,被做为隐式类型转换使用。比如:inti;floatf=166.7f;i=static_cast(f);此时结果,i的值为166。2、C++中的reinterpret_cast主要是将数据从一种类型的转换为另一种类...
分类:
编程语言 时间:
2015-12-13 12:36:52
阅读次数:
177
package com.hanqi;public class TestError { public static void main(String[] args) { try { int i = 2/0; } ...
分类:
其他好文 时间:
2015-12-13 11:07:47
阅读次数:
158
1.Java中除了static方法和final方法之外,其它所有的方法都是动态绑定,如同C++的虚函数,但是我们不需要显示的声明。 private方法本质上属于final方法(因此不能被子类访问)。 构造函数本质上属于static方法,只不过该static声明是隐式的。 final方法会使编译...
分类:
编程语言 时间:
2015-12-13 02:11:32
阅读次数:
374
实现这样的效果布局: 字的shape: QuickIndexBar/** * 快速索引 * * 用于根据字母快速定位联系人 * @author poplar * */public class QuickIndexBar extends View { private static final Stri...
分类:
其他好文 时间:
2015-12-12 23:12:28
阅读次数:
296
http://wu110cheng.blog.163.com/blog/static/13334965420121120102439190/Firefox下网页缩放时防止div被挤到下一层问题:三个div,一个div中包含两个浮动带有border边框的div;且样式设计中保证两个div全部宽度之和等...
分类:
Web程序 时间:
2015-12-12 21:32:41
阅读次数:
206