摘要:
this关键字 表示类中的属性和方法调用本类中的构造方法表示当前对象。 代码 public class text01_1 { public static void main(String[] args){ //System.out.print(args[0]); People pl=new Peop 阅读全文
摘要:
switch语句 # switch(表达式){ case 常量1:代码块1; break; case 常量2:代码块2; break; case 常量3:代码块3; break; default:以上常量值均不是,执行本代码 } 如果是几种情况执行相同的代码,可以 case 1: case 2: c 阅读全文
摘要:
.net一般应用处理程序 public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/html"; //1.获取请求的数据(get提交方式)标签的name就是“key” int age 阅读全文
摘要:
异步委托调用(只支持单播委托) public delegate int GetSumDelegate(int from, int to); public delegate void MyDelegate2(string s1, int n1); public delegate void MyDele 阅读全文