festival
unknown
java
a year ago
582 B
2
Indexable
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; }
Editor is loading...
Leave a Comment