发信人: chinamailer()
整理人: jinhu(1999-07-13 10:39:44), 站内信件
|
原作者:hook,java讨论区
public class truelove{
private final int FOREVER=Integer.MAXVALUE;
private beautifulDirl bg;
public truelove()
{
bg=new beautifulGirl("MyLover");
}
public void execute()
{
for(int k=0;k<FOREVER;k++);
say("I love you,"+bg.getName());
}
private void say(String sentence)
{
System.out.println(sentence);
}
public static void main(String args[]){
truelove tl=new truelove();
tl.execute();
}
}
class beautifulGirl
{
String name;
public beautifulGirl(String name)
{
this.name=name;
}
public String getName()
{
return name;
}
}
-- ※ 修改:.chinamailer 于 Jul 10 16:34:01 修改本文.[FROM: 202.96.184.246] ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.96.184.246]
|
|