码迷,mamicode.com
首页 >  
搜索关键字:static router    ( 49087个结果
Findbugs
今天发现项目代码加入了findbugs的依赖包,简单的搜索了下: 官方说明: FindBugs is a defect detection tool for Java that uses static analysis to look for more than 200 bug patterns, such as null pointer dereferences, infinite recu...
分类:数据库   时间:2014-06-07 01:19:07    阅读次数:250
设计模式--单例模式(学习笔记)
定义:      单例模式:保证一个类只有一个实例,并且提供一个访问它的全局访问点。(《大话设计模式定义》);     单例模式分为两种:        1>饿汉式单例类:自己被加载时就将自己实例化。          例子:       private SingleExample() {           } private static SingleExample sin...
分类:其他好文   时间:2014-06-05 10:14:01    阅读次数:198
关于codehunt Level 02.01 的疑问
codehunt Level 02.01 原题大意如下 : 假设给定下列函数声明 public static int[] Puzzle(int n) { return null; } 要求写出该方法具体函数代码,返回值应为下列类似的值 n 值 1 {0} 2 ...
分类:其他好文   时间:2014-06-05 10:10:14    阅读次数:180
C++:关于class member声明为static的情况
2014.5.27 reference: C++ primer 5th, $7.6:Static Class Members TOPIC 1:一个类中的member(data member和function member)可以声明为static,需要申明为static的情况有一下原因: 1:使用的客观需要:需要某个member是associated with the class,not wi...
分类:编程语言   时间:2014-06-05 05:19:15    阅读次数:263
Java Swing界面编程(9)---BorderLayout布局管理器
package com.beyole.util; import java.awt.BorderLayout; import java.awt.Button; import javax.swing.JFrame; public class test7 { public static void main(String[] args) { JFrame frame=new JFrame("C...
分类:编程语言   时间:2014-06-05 04:30:51    阅读次数:285
Java Swing界面编程(6)---JButton按钮组件
package com.beyole.util; import java.awt.Font; import javax.swing.JButton; import javax.swing.JFrame; public class test5 { public static void main(String[] args) { JFrame frame=new JFrame(); J...
分类:编程语言   时间:2014-06-05 03:28:46    阅读次数:300
const经典例子小结
在看这个例子之前,可以先看看:详解C和C++中的const和const和static变量的存放位置这样将会对const有非常全面的了解和认识: 下面我们将通过下面的例子看看const的一些非常不易发觉的错误: #include using namespace std; class String { public: friend ostream& operator<<(ostream& os...
分类:其他好文   时间:2014-06-05 02:53:26    阅读次数:273
怎样使代码在main函数前执行,怎样使代码在main函数之后执行
网上有说可以用 __attribute__ ((constructor)) 来让函数在main函数之前执行, __attribute__ ((destructor)) 来让函数在main函数之后执行。 在标准C/C++中 可以用global variable 或static variable来让代码在main函数之前执行 可以用atexit来让函数在main函数之后执行...
分类:其他好文   时间:2014-06-05 02:13:46    阅读次数:263
Java Swing界面编程(8)---FlowLayout布局管理器
package com.beyole.util; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class test6 { public static void main(String[] args) { JFrame frame = new JFram...
分类:编程语言   时间:2014-06-05 01:51:09    阅读次数:318
C++ this与const,const_cast,static_cast的关系
一、整体代码 #include using namespace std; class CCTest { public: void setNumber( int ); void printNumber() const ; private: int number; }; void CCTest::setNumber( int num ) { number = num; } ...
分类:编程语言   时间:2014-06-04 23:17:34    阅读次数:415
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!