码迷,mamicode.com
首页 >  
搜索关键字:final    ( 9795个结果
activity 透明度更改
/** * 调整窗口的透明度 * @param from>=0&&from=0&&to<=1.0f * * */ private void dimBackground(final float from, final float to) { final Window window = g...
分类:其他好文   时间:2015-05-05 12:44:33    阅读次数:130
CSU 1603 Scheduling the final examination(贪心)
1603: Scheduling the final examination Time Limit: 10 Sec  Memory Limit: 128 MB Submit: 58  Solved: 18 [Submit][Status][Web Board] Description For the most of the university students,what t...
分类:其他好文   时间:2015-05-05 08:53:31    阅读次数:126
ACM 五一杭电赛码"BestCoder"杯中国大学生程序设计冠军赛小记
对于这项曾经热爱的竞赛,不得不说这是我最后一年参加ACM比赛了,所以要珍惜每一次比赛的机会。 五一去杭电参加了赛码"BestCoder"杯中国大学生程序设计冠军赛,去的队伍包括了今年19支World final的队伍,几乎是全国最强的46所学校各出了一个代表队,十分感谢学校给了我这个大三的老年血手....
分类:其他好文   时间:2015-05-04 21:46:47    阅读次数:218
final关键字
final关键字: 1、最终,作为一个修饰符 2、可以修饰类,变量,函数。 3、被final修饰的类不可以被继承,为了避免被继承,被子类复写功能。 4、被final修饰的方法不可以复写(只修饰类中的一些方法) 5、被final修饰的变量是一个常量只能赋值一次,既可以修饰成员变量也可以修饰局...
分类:其他好文   时间:2015-05-04 19:41:32    阅读次数:109
CSUOJ 1603 Scheduling the final examination
1603: Scheduling the final examination Time Limit:10 SecMemory Limit:128 MBSubmit:49Solved:15DescriptionFor the most of the university students,what t...
分类:其他好文   时间:2015-05-04 19:32:01    阅读次数:111
java防止sql注入
public final static String filterSQLInjection(String s) { ??? if (s == null || "".equals(s)) { ??????? return ""; ??? } ??? try { ??????? s = s.trim().replaceAll("</?[s,S][c,...
分类:数据库   时间:2015-05-04 18:26:03    阅读次数:151
设计模式(结构型)之享元模式(Flyweight Pattern)
当一个软件系统在运行时产生的对象数量太多,将导致运行代价过高,带来系统性能下降等问题。所以需要采用一个共享来避免大量拥有相同内容对象的开销。在Java中,String类型就是使用了享元模式。String对象是final类型,对象一旦创建就不可改变。在Java中字符串常量都是存在常量池中的,Java会确保一个字符串常量在常量池中只有一个拷贝。...
分类:其他好文   时间:2015-05-04 15:39:06    阅读次数:125
算法系列——八皇后问题
public class Queen { private final int size; private int[] location; private int[] columnOccupied; private int[] lineOccupied; ...
分类:编程语言   时间:2015-05-04 13:51:16    阅读次数:124
用httpPost对JSON发送和接收的例子
HTTPPost发送JSON: private static final String APPLICATION_JSON = "application/json"; private static final String CONTENT_TYPE_TEXT_JSON = "text/json"; public static void httpPostWithJSON(St...
分类:Web程序   时间:2015-05-04 12:08:16    阅读次数:95
LAMP_PHP模块
网络环境环境信息介绍:系统信息:CentOSrelease6.6(Final)2.6.32-504.el6.x86_64x86_64(获取方法:cat/etc/redhat-release;uname-r;uname-m)IP地址:172.16.6.61/16apache版本Apache/2.4.10数据库版本:mariadb-5.5.43-linux-x86_64.tar.gzxcache版本:xcache-3.2.0.tar.bz2PHP..
分类:Web程序   时间:2015-05-04 10:17:59    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!