Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use
viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Bencratus
Posts: 51 Joined: Wed Jan 07, 2015 11:38 pm
Contact:
Post
by Bencratus » Wed Feb 18, 2015 12:12 am
Hello,
I hate when need write:
Code: Select all
buffs.add(1045);
buffs.add(1048);
buffs.add(1040);
what you think about this method to add all ArrayList? Or you have any other suggestions?
I'm smart badass
Code: Select all
int x[] = {1045,1048,1040};
for (int a = 0; a < 3; a++)
{
buffs.add(x[a]);
}
Better way and it works, thanks to malyelfik and thanks to java 8
Thanks,
Bencratus
Last edited by
Bencratus on Wed Feb 18, 2015 12:47 am, edited 1 time in total.
malyelfik
L2j Veteran
Posts: 355 Joined: Wed Sep 02, 2009 11:18 am
Location: Czech Republic
Post
by malyelfik » Wed Feb 18, 2015 12:32 am
Bencratus
Posts: 51 Joined: Wed Jan 07, 2015 11:38 pm
Contact:
Post
by Bencratus » Wed Feb 18, 2015 12:43 am
Code: Select all
List<Integer> e = Arrays.asList(1045,1048,1040);
buffs.addAll(e);
Yeah working, thanks a lot man, that's why I love java 8;D
Zoey76
L2j Inner Circle
Posts: 7005 Joined: Tue Aug 11, 2009 3:36 am
Post
by Zoey76 » Wed Feb 18, 2015 2:32 am
This is not from Java 8