聖誕快樂

先祝各位聖誕快樂!

應節應該唱聖誕歌,我也來登一首家傳戶曉的好了。
本來打算貼一篇 shell script 版,想不起來唯有即席另寫 版本吧。

/*
*Santa Claus is Coming to Town
*/
import org.santaclaus.*;

class SantaClausIsComingToTown {

public static void main(String args[]) {
this.watch(System.out);
this.setCry(false);
this.setPout(false);
System.out.println(why);
SantaClaus.go(town);

List list = new ArrayList();
for (int i=0; i<2; i++) SantaClaus.check(list);
SantaClaus.setNaughtyList(Collections.binarySearch(list, “naughty”));
SantaClaus.setNiceList(Collections.binarySearch(list, “nice”));
SantaClaus.go(town);

while(this.sleep()) SantaClaus.see(this);
while(this.awake()) SantaClaus.know(this);
if (this.isBad() || this.isGood()) SantaClaus.know(this);
for ( ; goodnessSake(); ) this.setGood(true);

this.watch(System.out);
this.setCry(false);
this.setPout(false);
System.out.println(why);
SantaClaus.go(town);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *