码迷,mamicode.com
首页 >  
搜索关键字:class    ( 183544个结果
注入--注解---扫描
@Componentpublic class Student { public void say() { System.out.println("student say"); }}@Componentpublic class Person { //@Resource(...
分类:其他好文   时间:2015-05-30 18:12:36    阅读次数:152
java初学。加载图片
public class GameFrame extends Frame{ private static final int WIDTH=900; private static final int HEIGHT=600; Man man=new Man(); public void ...
分类:编程语言   时间:2015-05-30 18:10:32    阅读次数:136
Chapter 3
Python 是面向对象的,所有的对象都是通过引用传递的。1、多变量赋值,>>>a,b,c=1,'win',[23,45,44]2、类的文档变量是class.__doc__函数文档变量是 function.__doc__3、由于主程序代码无论模块是被导入还是直接执行都会运行,如果模块是被导入,__n...
分类:其他好文   时间:2015-05-30 18:09:13    阅读次数:129
注入---注解
public class Student { public void say() { System.out.println("student say"); }}public class Person { //@Resource(name="student") @...
分类:其他好文   时间:2015-05-30 18:05:31    阅读次数:159
HttpRuntime类
HttpRuntime在ASP.NET处理请求中负责的是创建HttpContext对象以及调用HttpApplicationFactory创建HttpApplication。 其定义如下: public sealed class HttpRuntime { public ...
分类:Web程序   时间:2015-05-30 17:57:50    阅读次数:112
Android之Json
Servlet部分public class JasonAction extends HttpServlet { private JsonService service; public void doGet(HttpServletRequest request, HttpServl...
分类:移动开发   时间:2015-05-30 17:55:25    阅读次数:127
C++模板求n!与1+2+...n
//求n!与1+2+...n #include using namespace std; template class A { public: //static int const result = 3*A::result; enum{result=_N*A::result};//求n! //enum{...
分类:编程语言   时间:2015-05-30 16:47:26    阅读次数:183
使用Linq的Intersect与Except方法的实例
实例描述 现有某班学生的两份成绩,两份成绩中存在一些不一致的记录,需要借助于编程方法找出这些不一致的记录。   实例代码 using System; usingSystem.Collections.Generic; using System.Linq; namespace IntersectAndExceptExp { class Program {...
分类:其他好文   时间:2015-05-30 16:44:26    阅读次数:131
C# AccessHelper
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.OleDb; using System.Data; public class AccessHelper:IDisposable { private OleDbConn...
分类:数据库   时间:2015-05-30 16:43:01    阅读次数:141
单例模式
分享一个我在工作中用到的单例类,也欢迎大家留言批评指正。#ifndef _SINGLETON_H_#define _SINGLETON_H_//单件类template class CSingleton{public: static T* Instance(bool bAutoClean =...
分类:其他好文   时间:2015-05-30 16:36:41    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!