程序员的爱情(What Is Love)

类别:Java 点击:0 评论:0 推荐:
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;
   } 
 }
}

本文地址:http://com.8s8s.com/it/it17976.htm