Forked from boostit/gist:5a884a68e222ebbe8731296e33fcdf94
Last active
December 8, 2017 21:57
-
-
Save sarbull/59fc9f4244af50042b9a36b32f1677dc to your computer and use it in GitHub Desktop.
Can you spot the errors in the code? Tell us in the comments below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BoostIT implements Angajeaza { | |
public static String XP_LEVEL = "Senior"; | |
public Set<Senior> seniors = new HashSet<Senior>; | |
public Set Cautam(List<Developer> devs) { | |
for (Developer d : devs) { | |
if (d.stieJava().equals(XP_LEVEL)) { | |
seniors.add(d); | |
} | |
} | |
for (Senior s : seniors) { | |
angajam(s); | |
} | |
} | |
public void Angajam(Senior senior) { | |
System.out.println("Angajam Senior JAVA developer!"); | |
System.out.println("Spune-ne ce greseli gasesti in"); | |
System.out.println("codul acestui anunt verbose"); | |
System.out.println("si poti castiga"); | |
System.out.println("o cafea la un interviu :)"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment