L2shaken Posted November 22, 2016 Posted November 22, 2016 (edited) http://imgur.com/a/1oYgm protected int getWinnerTeam() { ArrayList<EventTeam> t = new ArrayList<>(); for (EventTeam team : teams.values()) { if (t.size() == 0) { t.add(team); continue; } if (team.getScore() > t.getFirst().getScore()) { t.clear(); t.add(team); continue; } if (team.getScore() == t.getFirst().getScore()) t.add(team); } if (t.size() > 1) return 0; return t.getFirst().getId(); } getFirst () must be replaced by what? Edited November 22, 2016 by L2shaken Quote
0 xxdem Posted November 24, 2016 Posted November 24, 2016 "trashed by the elseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseif guy feels bad XD Quote
0 Elfo Posted November 24, 2016 Posted November 24, 2016 "trashed by the elseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseif guy feels bad XD 3 years ago maybe. I'm not the guy that wrote IWorld.something tho :'( Quote
0 Elfo Posted November 24, 2016 Posted November 24, 2016 (edited) I've edited read again. Fun was a wrong word to say. Showing off or helping? Get your shit straight mate. Yeah you are really helping showing your reconnect code out of context without the methods that are backing it up and by just saying "my custom cool thing does that" Edited November 24, 2016 by .Elfocrash Quote
0 AccessDenied Posted November 24, 2016 Posted November 24, 2016 True you didn't actualy answer in my question, you posted a file with methods that just names but still if we had to choose between lists, which one would be the fastest to store players data upon event just to use them on reconnect. ConcurrentHashhMap ? Quote
0 SweeTs Posted November 24, 2016 Posted November 24, 2016 ConcurrentHashhMap ? Ya, alextoti approves. Quote
0 xxdem Posted November 24, 2016 Posted November 24, 2016 Yeah you are really helping showing your reconnect code out of context without the methods that are backing it up and by just saying "my custom cool thing does that" I love it when I get rekt Quote
0 AccessDenied Posted November 24, 2016 Posted November 24, 2016 Ya, alextoti approves. The funny moment when you start thinking how many timers are running, how many connections and how many times you used FastList :3 AlexToti wouldn't aprove of that lel Quote
0 Versus Posted November 24, 2016 Posted November 24, 2016 It's funny to see the man that judges everyone and everything finally getting a taste of his own medicine. Well played Elfo, well played. Quote
0 AccessDenied Posted November 24, 2016 Posted November 24, 2016 (edited) It's funny to see the man that judges everyone and everything finally getting a taste of his own medicine. Well played Elfo, well played. Idk why but you're the most mother fucker awesome :3 but don't be cruel with him he is good guy :) Edited November 24, 2016 by AccessDenied Quote
0 xxdem Posted November 24, 2016 Posted November 24, 2016 It's funny to see the man that judges everyone and everything finally getting a taste of his own medicine. Well played Elfo, well played. Its funny that I am getting blamed for using a static method on an Interface, even if I clarified why I did that I am still getting blamed. Probably both of you don't know what static truly means. Licking just for no reason. Well played retard, well played. Quote
0 SweeTs Posted November 24, 2016 Posted November 24, 2016 how many times you used FastList :3 Let me tell you. Not once. Quote
0 Sdw Posted November 24, 2016 Posted November 24, 2016 That's when people that don't understand shit enter a debate Quote
0 AccessDenied Posted November 24, 2016 Posted November 24, 2016 Let me tell you. Not once. Bitch plz, javolution were under your bed everynight Quote
0 AccessDenied Posted November 24, 2016 Posted November 24, 2016 That's when people that don't understand shit enter a debate You can also argue with us.. its fun come on.. I argue with SweeTs, xdem with Elfo, you can argue with Versus Quote
0 Versus Posted November 24, 2016 Posted November 24, 2016 Its funny that I am getting blamed for using a static method on an Interface, even if I clarified why I did that I am still getting blamed. Probably both of you don't know what static truly means. Licking just for no reason. Well played retard, well played. I didn't blame anyone, nor licked. I just like the fact that for once you are on "defensive" and not the typical moron you usually are ^^ Quote
Question
L2shaken
http://imgur.com/a/1oYgm
getFirst () must be replaced by what?
Edited by L2shaken87 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.