程序员应该有程序员交流的语言和解决问题的方式,try the following program, come on!!!public class Love{
public static void main(String[] args){
while(true){
//it seems a bit fool, even, some parts of your body would be destroied just like
//the machine running this code section...but,anyway,it is your choice... maybe admirable,hehe
if(isDenied("I love u")){
System.out.println("My heart broken...");
continue;
}else{
break;
}
 //uncomment and try this, it seems very cool!!!
/*if(isDenied("I love u")){
System.out.println("Oh, you miss the chance, I don't care :)...");
break;
}else{
break;
}*/

/* //uncomment and try this, it seems very smart!!!
if(isDenied("I LOVE u")){
//you don't need do anything here

}else{
System.out.println("just celebreate...just do what you want...hoho");
break;
}*/

}
System.out.println("When you see this, you are the happy guy...:)");
}

public static boolean isDenied(String what){
if(what.indexOf("love")>=0){
System.out.println("No!!!!");
return true;

}else{
System.out.println("Ok....");
return false;
}
}}Notes: this code is open source, just do what you want on that if you like.have fun! :)

解决方案 »

  1.   

    do
    {
      追她……
    }while(她成为你的老婆);
      

  2.   

    int i=0;
    while(i==0){
           追她......
     }
      

  3.   

    try
    {
       int n=Inter.parseInt(args[0]);
       System.out.println("我爱你永远!");
    }
    catch(Love e)
    {
       System.out.println("我永远爱你!");
    }
    catch(Love1 e1)
    {
       System.out.println("我还是永远爱你!");
    }
    catch(Love2 e2)
    {
       System.out.println("我还是永远爱你,一生不变!");
    }
    catch(Love3 e3)
    {
       System.out.println("我还是永远爱你,一生一世不变!");
    }
      

  4.   

    我说兄弟
    你追她追了几年了???
    我追的那个已经让我追了3年多了
    看她的意思还要我再追年!!
    my god!
    不过,没什么,不追干什么??
    追!!!!!!!!!!!!!!!!!!!!
      

  5.   

    do
    {
         你->追(她);
    }while(未得手);