header image 2

吃到飽一族 JAVA版(祝福麵麵,早日康復)

25 6 月, 2007 · 2 Comments

麵麵出院了,也開始上班了~

可是呢?
先前STU吃到飽一族,可能就此銷聲匿跡了~
早上Unicorn傳來VB .Net的吃到飽一族虛擬碼。。
我改成java版,順道可以run(先不管結果)….:p
Unicorn居然說我起肖了~(咳~這還是Unicorn大人你先發聲的~)
下面就是吃到飽一族JAVA版虛擬碼
public class 吃到飽一族 {
	public String 吃到飽行動(int v飽足感, int v滿足感, int v裝食物量){
		String 目前狀態 = "";
		if(v飽足感 != 999){							
			目前狀態 = "管他吃了多少,還要再吃";
		}else{
			目前狀態 = "休息下次吃";
		}
		
		if(v滿足感 < v飽足感){
			目前狀態 = "管他吃了多少,還要再吃";
		}else{
			目前狀態 = "休息下次吃";
		}
		
		if (v裝食物量 == 0){
			if( v滿足感 < v飽足感){
				目前狀態 = "管他吃了多少,還要再吃";
			}else{
				目前狀態 = "休息下次吃";
			}
		}
		
		return 目前狀態;
	}
		
	public static void main(String[] args) {
		吃到飽一族 kazuya = new 吃到飽一族();
		吃到飽一族 terry = new 吃到飽一族();
		吃到飽一族 unicorn = new 吃到飽一族();
		吃到飽一族 salamander = new 吃到飽一族();
		System.out.println(kazuya.吃到飽行動(0, 0, 999));
		System.out.println(terry.吃到飽行動(0, 0, 999));
		System.out.println(unicorn.吃到飽行動(0, 0, 999));
		System.out.println(salamander.吃到飽行動(0, 0, 999));
	}
}

Tags: 三言兩語

2 responses so far ↓

  • 1 salamander // 6 月 26, 2007 at 09:16

    我現在食量只有以前的三分之一@@….

  • 2 Kazuya // 6 月 28, 2007 at 16:55

    這樣阿。。
    沒關係,可以少量多餐。。。。。

Leave a Comment