Friday, August 10, 2007

Holiday.java

/*
* Holiday.java
*/

package gr.papo;

/**
* @author papo
*/
public class Holiday {

public Holiday() {
}

public static void main(String[] args){
Papo paris = new Papo();
paris.setIsWorking(false);
paris.setIsOnVacation(true);
paris.start();
}

}//end of Holiday

class Papo extends Thread{
private boolean isWorking;
private boolean isOnVacation;

public void run(){
System.out.println("Papo is on vacation...fuck yeah!");
try {
this.sleep(604800000);

}catch (InterruptedException ex) {
System.err.println("You have interrupted my vacation, why bitch?" +
"Papo is angry!");
}
System.out.println("Papo is back!");
}

public boolean isWorking() {
return isWorking;
}
public void setIsWorking(boolean isWorking) {
this.isWorking = isWorking;
}
public boolean isOnVacation() {
return isOnVacation;
}
public void setIsOnVacation(boolean isOnVacation) {
this.isOnVacation = isOnVacation;
}
}//end of Papo

11 comments:

  1. Δεν πιστεύω να ξεχάσεις να το κάνεις compile, ε; Καλές διακοπές!

    ReplyDelete
  2. χα!
    Καλές διακοπές Μέντορα:-)

    ReplyDelete
  3. /* Ευχή προς Papo */
    #include"darkheart.h"

    int main(void){
    printf("Καλές διακοπές");
    return 0;
    }

    ReplyDelete
  4. Καλές διακοπές!

    ReplyDelete
  5. Exeis frikarei teleios... Den katalava tipota!!!!!!!!

    ReplyDelete
  6. Πολύ καλός!!!!

    Καλές διακοπές!

    ReplyDelete
  7. papo ap oti katalava pas diakopes
    me to kalo otan peraseis kala kai giriseis se parakalo pes mou pos boro na valo orthrografiko lexiko sto word gia mac pou eho. Eimai fanatiki mehri aidias episis gia Mac. Eho valei ena alla den leitourgei.
    xilia euxaristo
    dekal@flash.gr

    ReplyDelete