Java中的this随处可见,用法也多,现在整理有几点:1.
this是指当前对象自己。当在一个类中要明确指出使用对象自己的的变量或函数时就应该加上this引用。如下面这个例子中: 1 public class Hello
{ 2 3 String s = "Hello"; 4 5 pu...
分类:
编程语言 时间:
2014-05-12 15:27:37
阅读次数:
358
字符串库
注:字符串在Lua中是不可变的,任何的string操作都不会去改变原有的字符串,都是返回新的字符串
一、一般函数
1. 求长度
s = "Hello LUA ";
print(string.len(s));
print(#s);
2. 重复
print(string.rep(s,3)); -- s 重复了3次
3. 大小写转换
print(stri...
分类:
其他好文 时间:
2014-05-12 15:08:08
阅读次数:
336
Rotating Scoreboard
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 4899
Accepted: 1946
Description
This year, ACM/ICPC World finals will be held in a hall...
分类:
其他好文 时间:
2014-05-12 14:32:13
阅读次数:
473
Hello Everybody!Mouse Hover效果图如上效果很简单,这里我就不赘述了 PS
:技术并不代表创意!
分类:
Web程序 时间:
2014-05-12 08:07:26
阅读次数:
241
public class ThreadTest implements Callable {
public String call() throws Exception {
// TODO Auto-generated method stub
wait(10000);
return "hello";
}
}调用代码:
public static void main(Stri...
分类:
编程语言 时间:
2014-05-11 21:27:24
阅读次数:
533
android快速上手(二)android开发环境搭建及hello world
(一)android开发环境搭建
(二)开启Hello World之旅
(三)学习概要...
分类:
移动开发 时间:
2014-05-11 20:40:12
阅读次数:
483
创建一个新项目是很简单的,只要你安装了Eclipse插件,并且你的Eclipse软件版本在3.2或3.3,你就可以开始开发了。首先, 看一下要创建"Hello,
World"程序从高级层面上有哪些步骤:1, 通过 File -> New -> Project 菜单,建立新项目"Android ...
分类:
移动开发 时间:
2014-05-11 00:06:13
阅读次数:
400