CSDN博客

img haiskey

程序员的爱情(What Is Love)

发表于2003/3/5 9:04:00  678人阅读

class WhatIsLove
{
 String love;
 public static void main(String[] args)
 {
   if(love.equals("heart"))
   {
    System.out.println("Do you know his/her heart?");
   }
   else if(love.equals("money"))
   {
    System.out.println("How much his/her love");
   }
   else if(love.equals("happiness"))
   {
    System.out.println("You are happy,really?");
   }
   else if(love.equals("pain"))
   {
    System.out.println("Why do you want love?");
   }
   else if(love.equals("sex"))
   {
    System.out.println("What are you get?");
   }
   else
   {
    System.out.println("What is love?");
    love = null;
   } 
 }
}
0 0

相关博文

我的热门文章

img
取 消
img