//// main.m// 07-协议的应用-代理模式//// Created by apple on 13-6-30.// Copyright (c) 2013年 apple. All rights reserved.//#import #import "Person.h"#import "Age...
分类:
其他好文 时间:
2015-02-28 21:31:50
阅读次数:
191
2、PersonImpl类的源码public class PersonImpl implements Person { private String name; private int age; public void setName(String name) { ...
分类:
编程语言 时间:
2015-02-28 12:48:25
阅读次数:
142
1.分别给name和age指定了默认值
public void Test(string name="ronaldo",int age=20)
{
}
2.命名参数的使用
调用上面的Test方法可以按如下的方式
Test(); //同时使用了两个参数的默认值
Test(age:12); //name使用了默认值,age使...
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudInvitation CardsTime Limit: 5 Seconds Memory Limit: 65536 KBIn the age of television, not many peop...
分类:
其他好文 时间:
2015-02-27 21:29:45
阅读次数:
258
显示变量名libname saslib "H:\ sas";/*varnum表示按观测位置排序变量名,默认为按字母顺序*/data saslib.Student; input name $ Age Score; datalines;李四 25 85.6王五 27 98.12张三 30 78;proc contents varnum data=saslib.Student;r...
分类:
其他好文 时间:
2015-02-27 18:29:38
阅读次数:
140
函数可以分为:单行函数和多行函数。单行函数所谓的单行函数就是将每条数据进行独立的计算,然后每条数据得到一条结果。1.流程控制函数caseSql代码selectname,age,(casesexwhen1then"男"when0then"女"else"火星人"end)fromuser;ifSql代码s...
分类:
数据库 时间:
2015-02-27 16:36:25
阅读次数:
181
--====================简单增删改===========--查看学生表的全部数据select * from studio --插入一个新的学生信息insert into studio(st_name,st_sex,st_age,st_add,st_tel) values("黄兰淇...
分类:
数据库 时间:
2015-02-26 21:27:00
阅读次数:
159
struts2类型转换时出错,比如Action中需要int类型数据,但却传入了不能转换为int类型的数据,比如abcd,不能转换为intform表单页:1 2 Age:3 4 5 action:public conversionAction exten...
分类:
其他好文 时间:
2015-02-26 16:21:35
阅读次数:
140
定义类的方法class 类名{ 属性; 方法;}属性也叫成员变量,主要用于描述累的状态方法也叫成员方法,主要用于描述类的行为class Person{ int age; void show() { System.out.println(“oh,my god ! I am”+age...
分类:
编程语言 时间:
2015-02-25 18:33:26
阅读次数:
191
使用emacs-jde进行Java开发(Hacking Java with emacs-jde)进行Java开发的朋友们一般都使用某种IDE进行开发,比较常用的有JBuilder ,Visual Cafe,Visual Age等。使用IDE开发对于初学者是一种很好的手段。但对于熟悉 了linux/u...
分类:
系统相关 时间:
2015-02-25 17:02:26
阅读次数:
242