2014年12月12日
摘要: 1、 this 不能直接调用 非static成员class A{static public void M1(){ Hello(); // 错误 在static成员中不能直接调用非static成员 A a=new A(); a.Hello();}public void Hello()... 阅读全文
posted @ 2014-12-12 19:02 bitter羽 阅读(241) 评论(0) 推荐(0)
摘要: 1、可变参数:params static int Max(params int[] values){ } int i =Max(2,3,12,43,12,32) ;2、Trim 消除前后空格,不能去掉中间空格。 s=s.Trim();3、Replace 字符串替换 s=s.Repla... 阅读全文
posted @ 2014-12-12 10:31 bitter羽 阅读(124) 评论(0) 推荐(0)