//在我的世界里
//你就是我的单例
//一旦开始
//返回始终都是你
class LifeStory
{
private Person lover=null;
private Person myself=new Person();
private boolean appear=false;
public Person withyou()
{
if(lover ==null)
{
lover=waitMylove();
}
return lover;
}
}
//你若不来,我便不弃
public Person waitYou()
{
if (!appear)
{
return waitYou();
}
else
{
return withYou();
}
}
//你就是我的单例
//一旦开始
//返回始终都是你
class LifeStory
{
private Person lover=null;
private Person myself=new Person();
private boolean appear=false;
public Person withyou()
{
if(lover ==null)
{
lover=waitMylove();
}
return lover;
}
}
//你若不来,我便不弃
public Person waitYou()
{
if (!appear)
{
return waitYou();
}
else
{
return withYou();
}
}