码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
《设计模式》学习笔记
软件编程总原则:低耦合,高内聚一、设计模式中类的关系1.1.依赖:Java中表现为:类A使用类B,其中类B是作为类A的方法参数,方法中的局部变量或者静态方法调用。[code]public class People{ public void read(Book book){ System.out.pr...
分类:其他好文   时间:2015-05-13 21:14:47    阅读次数:150
64进制和10进制转换
class Program { static void Main(string[] args) { long val = 123456789; Console.WriteLine(Parse64Encode(val)); ...
分类:其他好文   时间:2015-05-13 21:13:35    阅读次数:199
Java实现排序
Java源文件地址:百度云:http://pan.baidu.com/s/1qW6ygzU提取码:dndr交换函数:public static void swap(int array[], int x, int y) { int t = array[x]; array[x] = array[y].....
分类:编程语言   时间:2015-05-13 21:12:59    阅读次数:122
一个简单的民政结婚程序
namespace MinZheng{class Program{static void Main(string[] args){//创建对象1,赋值Person person = new Person("张三",25,XingBie.男,false,null);//创建对象2,赋值Person p...
分类:其他好文   时间:2015-05-13 21:11:35    阅读次数:119
访问通讯录并返回号码(多个号码可以选择)
Intent i = new Intent(Intent.ACTION_PICK, android.provider.ContactsContract.Contacts.CONTENT_URI); startActivityForResult(i, 1); @Override protected void onActivityResult(int requestCode, int res...
分类:其他好文   时间:2015-05-13 19:54:50    阅读次数:254
【iOS开发问题】添加UIImageView不显示的问题
今天用下面这个方法添加UIImageView但是运行却不显示@interface ViewController () @property(nonatomic, weak)UIImageView *imageView; @end@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; UIImag...
分类:移动开发   时间:2015-05-13 19:47:24    阅读次数:152
如何用Spring将Service注入到Servlet中
解决方法有两种(推荐使用第二种) 方法一:   直接重写Servlet的Init()方法,代码如下: public void init(ServletConfig servletConfig) throws ServletException { ServletContext servletContext = servletConfig.getServletContext(); WebA...
分类:编程语言   时间:2015-05-13 19:45:02    阅读次数:116
崆若的水题之--盒子的鬼畜移动
#includeusing namespace std;const int MAXN=100010;int i,m,n,ileft[MAXN],iright[MAXN];void link(int L,int R) //将节点L和R连接起来,L在左,R在右 { iright[L]=R; ...
分类:移动开发   时间:2015-05-13 19:39:33    阅读次数:115
[C语言 - 6] static & extern
A. extern函数一个c文件生成一个obj文件外部函数:允许其他文件访问、调用的函数(默认函数为外部函数),不允许存在同名的外部函数my.c1 //define a extern function perfectly2 void extern testEx()3 {4 printf("m...
分类:编程语言   时间:2015-05-13 19:30:24    阅读次数:147
1 工厂方法模式(Factory Method)
普通工厂模式,传入参数,确定调用哪个多个工厂模式,静态工厂方法不静态主要使用静态工厂模式//接口public interface Sender{public void Send();} //实现类1public classMailSender implements Sender{public vo....
分类:其他好文   时间:2015-05-13 19:29:56    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!