码迷,mamicode.com
首页 >  
搜索关键字:final super关键字    ( 10114个结果
MyEclipse注册机
public class tedst { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the...
分类:系统相关   时间:2014-08-12 10:07:43    阅读次数:299
[Spring MVC]学习笔记--@RequestMapping
@RequestMapping是用来将请求的url,映射到整个类,或者里面的方法。@Controller@RequestMapping("/test")public class TestController { private final TestService service; @Au...
分类:移动开发   时间:2014-08-11 17:10:12    阅读次数:222
android一种统计工具Flurry的使用说明
Flurry的相关JAR包和文档:http://download.csdn.net/detail/baidu_nod/7739881 在libs里加上Flurry的jar包 可以写一个Flurry的管理类: public class FlurryTypes { public static final String DOWNLOAD_BOOK = "down load book";...
分类:移动开发   时间:2014-08-11 15:01:58    阅读次数:272
java中接口的定义与实现
1、定义接口 使用interface来定义一个接口。接口定义同类的定义类似,也是分为接口的声明和接口体,当中接口体由常量定义和方法定义两部分组成。定义接口的基本格式例如以下:[修饰符] interface 接口名 [extends 父接口名列表]{[public] [static] [final]....
分类:编程语言   时间:2014-08-10 23:52:50    阅读次数:256
学习笔记---使用override注解
在学习或者做东西,都懒得动手记,得习惯记下来才好...最近在看《Effective Java》,确实对我有很大的提高,把自己看到和想到的东西写下来,标记...1. 坚持使用override注解. 1 public class Bigram { 2 3 private final c...
分类:其他好文   时间:2014-08-10 18:36:10    阅读次数:201
ym——抽象与接口包含(工厂+适配器+代理)模式讲解
抽象类和接口抽象类 abstract class A{      // 是定义了一个抽象类        publicstatic final String FLAG = "CHINA" ;  //全局常量        privateString name = "Cym" ;    // 定义一个普通的属性        publicvoid setName(String...
分类:其他好文   时间:2014-08-10 15:53:30    阅读次数:388
二叉堆
未经测试:public class BinaryHeap { public static final int INIT_CAPACITY = 10; private int[] mArray; private int mLength; public BinaryHeap() { mArray = new int[INIT_CAPACITY + 1]; mLength = 0; ...
分类:其他好文   时间:2014-08-10 15:48:00    阅读次数:261
求最大子段和的一些算法
public class MaxSubSeqSum { /** * 算法1,穷举搜索 */ public static final int maxSubSeqSum1(int seq[]) { int length = seq.length; int sum = 0; for (int i = 0; i < length; i++) { for (int j = i;...
分类:其他好文   时间:2014-08-10 15:46:40    阅读次数:221
LeetCode "Palindrome Partition II" - Double DP
A so juicy and interesting problem! Recommend to everyone!A final solution may not jump into your mind immediately, of course, DP is not a trivial top...
分类:其他好文   时间:2014-08-10 15:37:00    阅读次数:209
从Http请求中获取客户端ip和端口
从Http请求中获取客户端ip和端口 import?javax.servlet.http.HttpServletRequest; import?org.apache.log4j.Logger; public?final?class?InternetProtocol?{ private?static?Logger?log?=?Logger....
分类:其他好文   时间:2014-08-10 13:12:30    阅读次数:741
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!