Untitled

mail@pastecode.io avatar
unknown
java
a month ago
582 B
2
Indexable
Never
public static string winnerName(Movie m1, Monie m2){
    if(m1.getPrizes() > m2.getPrizes())
        return m1.getName();
     if(m1.getPrizes() < m2.getPrizes())
        return m2.getName();
     if(m1.getPrizes() == m2.getPrizes())
        return "equals";
}

public string toString(){
    return this.lang + "/" + this.name + "-" + this.minutes + ":" + this.prizes;
}
public static boolean check(Festival f1, Festival f2){
    for(int i = 0; i<f1.getmovies().getlength; i++){
        if(f2.exist(f1.getmovies()[i]))
            return false;
    }
    else
        return true;
}
Leave a Comment