先贴上代码
package com.ray.object;
/**
* 父类引用子类对象
*
* @author ray
* @since 2015-04-30
* @version 1.0
*
*/
public class Test {
class Person {
public void say() {
System.out.println("i...
分类:
其他好文 时间:
2015-04-30 10:37:18
阅读次数:
106
package com.ray.object;
/**
* 不用main方法,也可以打印Hello World!
*
* @author ray
* @since 2015-04-29
* @version 1.0
*
*/
public class Person {
static {
System.out.println("Hello World!");
Syste...
分类:
其他好文 时间:
2015-04-29 11:50:31
阅读次数:
126
方法参数的调用是值调用而不是引用调用
package com.ray.object;
/**
* 方法参数的调用是值调用,而不是引用调用
*
* @author ray
* @since 2015-04-22
* @version 1.0
*
*/
public class Person {
private static void swap(...
分类:
其他好文 时间:
2015-04-29 11:50:24
阅读次数:
142
在下面的代码中,展示的是静态导入的一些方便与不便
如Math类这种更方面辨认的、Calendar类这种需要写很多东西的类,可以使用静态导入,从而降低读的门槛
但是对于print这个方法,基本上是不会有人这么干的了
package com.ray.object;
import static java.lang.Math.pow;
import static java.util.Cal...
分类:
其他好文 时间:
2015-04-29 11:44:54
阅读次数:
136
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/102400 K (Java/Others)
Total Submission(s): 925 Accepted Submission(s): 408
Problem Description
The God of sheep decides to ...
分类:
其他好文 时间:
2015-04-27 20:14:19
阅读次数:
171
DescriptionNeal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory and...
分类:
其他好文 时间:
2015-04-25 10:34:42
阅读次数:
124
【每日一歌】今天给大家推荐的是Groove Coverage(舞动精灵王族)的一首经典老歌-《she》。Groove Coverage在中国最出名的歌曲莫过于God Is A Girl,Far
Away From Home,She。他们的歌曲早已耳熟能详,这首《She》即使在9年后的今天聆听,依然能给你的耳朵带来舒缓愉悦的极致享受。
“她”,是谁?——她性感迷人,她自由...
分类:
其他好文 时间:
2015-04-21 09:49:05
阅读次数:
202
uva 11008 Antimatter Ray ClearcuttingIt’s year 2465, and you are the Chief Engineer for Glorified Lumberjacks Inc. on planet Trie. There is a number of trees that you need to cut down, and the only wea...
分类:
其他好文 时间:
2015-04-21 09:45:12
阅读次数:
194
God Save the i-th QueenTime Limit: 5000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainPrevSubmitStatusStatisticsDiscussNextT...
分类:
其他好文 时间:
2015-04-14 09:53:49
阅读次数:
138