Everything posted by Botre
- Javada Kedavra
- Javada Kedavra
-
Generics - Need Help
public class Swap { public static List<?> swap(List<?> list, Object a, Object b) { List<?> result = new ArrayList<>(list); Collections.swap(result, list.indexOf(a), list.indexOf(b)); return result; } public static <A, B> Object[] swap(Object[] array, Object a, Object b) { return swap(Arrays.asList(array), a , b).toArray(); } /* Example */ public static void main(String[] args) { Object[] array = new Object[]{1, "two", 3, "four"}; List<?> list = new ArrayList<>(Arrays.asList(array)); System.out.println(swap(array, 3, "two")); System.out.println(swap(list, "four", 1)); } } yw
-
Never go to IKEA
Thanks for the heads up.
-
God damn refugees
Nope, not playing this game with you. Enjoy President Clinton
- @Maldesto
- Demote
-
Osbot can't install webwalking?
Check firewall
-
God damn refugees
Not always an option though. I consider you poor, unskilled and backwards thinking, maybe you should leave this country you falsely consider yours yourself?
-
Most traumatizing experience you've ever had?
I think I saw someone getting borderline raped once.... What else was I going to do? Not fuck her? #dankmeme
-
God damn refugees
Sneaking in soldiers disguised as penniless refugees, brilliant plan, yes indeed this is how the most powerful military entity of the world will be defeated! All muslims are extremists wanting to overthrow the occidental reign. All germans were genocidal and wanted to eradicate the jews. Indeed, even when I put on my 'dumbfuck' glasses they're not quite the same, sorry. Why would they want to risk their lives in chemical warfare? Planning rape runs is so much more fun!
-
God damn refugees
Remember all those god damn evil German civilians who tried to escape Nazi Germany in order to be able to better spread terrorism all over the world?! Tangermünde bridge 1945 We build too many walls and not enough bridges. - Isaac Newton
-
Chatbox @ 3AM
When the shitbox turns sour
- No more TWC
-
mfw
Anything remotely sexually depraved = Acerd
-
Dr. Dovydas ft. Dr. Dre - Still A Friend
Acerd = A Friend confirmed
- Dr. Dovydas ft. Dr. Dre - Still A Friend
-
OSBot 2.4.98 - Account Switching Supported
Happy Halloween
-
What means
Ehm... Variables. API_LOCATION -> where the JSON data is retrieved from. TEN_MINUTES -> The amount (10 * 60 * 1000 = 600000) of milliseconds contained in 10 minutes. cache -> A cache, map mapping object ID to GE data. startTime -> System time when the object was initialized. I'm just guessing from the context, I didn't write this :p
-
What means
1. Snippet that searches GE data for an object with id 333 and then prints name + price. 2. Part of a JSON parsing method, also for GE data retrieving.
- VM
- Herro my fans
- The most annoying advert in TV.