Results 1 to 6 of 6
  1. #1
    sevatrix is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Array Index Out of Bounds Exception? Please help quick!

    java.lang.ArrayIndexOutOfBoundsException: 991
    at Champion.main(Champions (1) (1).java:209)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at edu.rice.cs.drjava.model.compiler.JavacCompiler.ru nCommand(JavacCompiler.java:272)
    >

    Is what I get when I run my program no idea how to fix.

    class Champion
    {
    String name;
    Champions [] weak = new Champions [3];
    Champions [] strong = new Champions [3];
    String [] items = new String [3];




    public static void main (String [] args)
    {

    Champions [] champs = new Champions [117];

    for(int i = 0; i<117 ; i++)
    champs[i] = new Champions();

    champs[0].name = "Aatrox";
    champs[0].weak[0] = champs[34];
    champs[0].weak[1] = champs[73];
    champs[0].weak[2] = champs[90];
    champs[0].strong[0] = champs[14];
    champs[0].strong[1] = champs[55];
    champs[0].strong[2] = champs[113];
    champs[0].items[0] = "Frozen Heart";
    champs[0].items[1] = "Randuin's Omen";
    champs[0].items[2] = "";

    champs[1].name = "Ahri";
    champs[1].weak[0] = champs[45];
    champs[1].weak[1] = champs[6];
    champs[1].weak[2] = champs[88];
    champs[1].strong[0] = champs[108];
    champs[1].strong[1] = champs[38];
    champs[1].strong[2] = champs[66];
    champs[1].items[0] = "";
    champs[1].items[1] = "";
    champs[1].items[2] = "";

    champs[2].name = "Akali";
    champs[2].weak[0] = champs[46];
    champs[2].weak[1] = champs[26];
    champs[2].weak[2] = champs[57];
    champs[2].strong[0] = champs[23];
    champs[2].strong[1] = champs[45];
    champs[2].strong[2] = champs[1];
    champs[2].items[0] = "";
    champs[2].items[1] = "";
    champs[2].items[2] = "";

    champs[3].name = "Alistar";
    champs[3].weak[0] = champs[32];
    champs[3].weak[1] = champs[100];
    champs[3].weak[2] = champs[50];
    champs[3].strong[0] = champs[8];
    champs[3].strong[1] = champs[47];
    champs[3].strong[2] = champs[91];
    champs[3].items[0] = "";
    champs[3].items[1] = "";
    champs[3].items[2] = "";

    champs[4].name = "Amumu";
    champs[4].weak[0] = champs[79];
    champs[4].weak[1] = champs[46];
    champs[4].weak[2] = champs[16];
    champs[4].strong[0] = champs[8];
    champs[4].strong[1] = champs[40];
    champs[4].strong[2] = champs[110];
    champs[4].items[0] = "";
    champs[4].items[1] = "";
    champs[4].items[2] = "";

    champs[5].name = "Anivia";
    champs[5].weak[0] = champs[23];
    champs[5].weak[1] = champs[39];
    champs[5].weak[2] = champs[15];
    champs[5].strong[0] = champs[75];
    champs[5].strong[1] = champs[48];
    champs[5].strong[2] = champs[38];
    champs[5].items[0] = "";
    champs[5].items[1] = "";
    champs[5].items[2] = "";

    champs[6].name = "Annie";
    champs[6].weak[0] = champs[9];
    champs[6].weak[1] = champs[66];
    champs[6].weak[2] = champs[58];
    champs[6].strong[0] = champs[1];
    champs[6].strong[1] = champs[40];
    champs[6].strong[2] = champs[23];
    champs[6].items[0] = "";
    champs[6].items[1] = "";
    champs[6].items[2] = "";

    champs[7].name = "Ashe";
    champs[7].weak[0] = champs[20];
    champs[7].weak[1] = champs[27];
    champs[7].weak[2] = champs[82];
    champs[7].strong[0] = champs[100];
    champs[7].strong[1] = champs[97];
    champs[7].strong[2] = champs[92];
    champs[7].items[0] = "";
    champs[7].items[1] = "";
    champs[7].items[2] = "";

    champs[8].name = "Blitzcrank";
    champs[8].weak[0] = champs[3];
    champs[8].weak[1] = champs[47];
    champs[8].weak[2] = champs[91];
    champs[8].strong[0] = champs[84];
    champs[8].strong[1] = champs[14];
    champs[8].strong[2] = champs[99];
    champs[8].items[0] = "";
    champs[8].items[1] = "";
    champs[8].items[2] = "";

    champs[9].name = "Brand";
    champs[9].weak[0] = champs[39];
    champs[9].weak[1] = champs[23];
    champs[9].weak[2] = champs[45];
    champs[9].strong[0] = champs[6];
    champs[9].strong[1] = champs[75];
    champs[9].strong[2] = champs[48];
    champs[9].items[0] = "";
    champs[9].items[1] = "";
    champs[9].items[2] = "";

    champs[10].name = "Caitlyn";
    champs[10].weak[0] = champs[82];
    champs[10].weak[1] = champs[36];
    champs[10].weak[2] = champs[99];
    champs[10].strong[0] = champs[100];
    champs[10].strong[1] = champs[69];
    champs[10].strong[2] = champs[20];
    champs[10].items[0] = "";
    champs[10].items[1] = "";
    champs[10].items[2] = "";

    champs[11].name = "Cassiopeia";
    champs[11].weak[0] = champs[24];
    champs[11].weak[1] = champs[45];
    champs[11].weak[2] = champs[88];
    champs[11].strong[0] = champs[75];
    champs[11].strong[1] = champs[57];
    champs[11].strong[2] = champs[86];
    champs[11].items[0] = "";
    champs[11].items[1] = "";
    champs[11].items[2] = "";

    champs[12].name = "Cho'Gath";
    champs[12].weak[0] = champs[106];
    champs[12].weak[1] = champs[100];
    champs[12].weak[2] = champs[41];
    champs[12].strong[0] = champs[111];
    champs[12].strong[1] = champs[40];
    champs[12].strong[2] = champs[52];
    champs[12].items[0] = "Blade of the ruined king";
    champs[12].items[1] = "";
    champs[12].items[2] = "";

    champs[13].name = "Corki";
    champs[13].weak[0] = champs[10];
    champs[13].weak[1] = champs[17];
    champs[13].weak[2] = champs[99];
    champs[13].strong[0] = champs[36];
    champs[13].strong[1] = champs[92];
    champs[13].strong[2] = champs[100];
    champs[13].items[0] = "Warmogs";
    champs[13].items[1] = "Randuins";
    champs[13].items[2] = "";

    champs[14].name = "Darius";
    champs[14].weak[0] = champs[90];
    champs[14].weak[1] = champs[41];
    champs[14].weak[2] = champs[35];
    champs[14].strong[0] = champs[107];
    champs[14].strong[1] = champs[73];
    champs[14].strong[2] = champs[60];
    champs[14].items[0] = "Chain Vest";
    champs[14].items[1] = "";
    champs[14].items[2] = "";

    champs[15].name = "Diana";
    champs[15].weak[0] = champs[57];
    champs[15].weak[1] = champs[73];
    champs[15].weak[2] = champs[86];
    champs[15].strong[0] = champs[40];
    champs[15].strong[1] = champs[23];
    champs[15].strong[2] = champs[95];
    champs[15].items[0] = "Hexdrinker";
    champs[15].items[1] = "Negatron cloak";
    champs[15].items[2] = "";

    champs[16].name = "Dr. Mundo";
    champs[16].weak[0] = champs[44];
    champs[16].weak[1] = champs[56];
    champs[16].weak[2] = champs[14];
    champs[16].strong[0] = champs[4];
    champs[16].strong[1] = champs[34];
    champs[16].strong[2] = champs[73];
    champs[16].items[0] = "Morellonomicon";
    champs[16].items[1] = "Executioner";
    champs[16].items[2] = "";

    champs[17].name = "Draven";
    champs[17].weak[0] = champs[991];
    champs[17].weak[1] = champs[10];
    champs[17].weak[2] = champs[69];
    champs[17].strong[0] = champs[20];
    champs[17].strong[1] = champs[100];
    champs[17].strong[2] = champs[56];
    champs[17].items[0] = "Randuins Omen";
    champs[17].items[1] = "Frozen Heart";
    champs[17].items[2] = "Chain Vest";

    champs[18].name = "Elise";
    champs[18].weak[0] = champs[39];
    champs[18].weak[1] = champs[111];
    champs[18].weak[2] = champs[107];
    champs[18].strong[0] = champs[26];
    champs[18].strong[1] = champs[71];
    champs[18].strong[2] = champs[80];
    champs[18].items[0] = "Quicksilver Sash";
    champs[18].items[1] = "Banshee's Veil";
    champs[18].items[2] = "Negatron Cloak";

    champs[19].name = "Evelynn";
    champs[19].weak[0] = champs[75];
    champs[19].weak[1] = champs[46];
    champs[19].weak[2] = champs[39];
    champs[19].strong[0] = champs[27];
    champs[19].strong[1] = champs[38];
    champs[19].strong[2] = champs[58];
    champs[19].items[0] = "Vision Ward";
    champs[19].items[1] = "Quicksilver Sash";
    champs[19].items[2] = "";

    champs[20].name = "Ezreal";
    champs[20].weak[0] = champs[28];
    champs[20].weak[1] = champs[17];
    champs[20].weak[2] = champs[10];
    champs[20].strong[0] = champs[7];
    champs[20].strong[1] = champs[36];
    champs[20].strong[2] = champs[49];
    champs[20].items[0] = "Frozen Heart";
    champs[20].items[1] = "Randuins Omen";
    champs[20].items[2] = "";

    champs[21].name = "Fiddlesticks";
    champs[21].weak[0] = champs[32];
    champs[21].weak[1] = champs[109];
    champs[21].weak[2] = champs[3];
    champs[21].strong[0] = champs[40];
    champs[21].strong[1] = champs[104];
    champs[21].strong[2] = champs[2];
    champs[21].items[0] = "Zhonya's Hourglass";
    champs[21].items[1] = "Banshee's Veil";
    champs[21].items[2] = "Quicksilver Sash";

    champs[22].name = "Fiora";
    champs[22].weak[0] = champs[35];
    champs[22].weak[1] = champs[52];
    champs[22].weak[2] = champs[67];
    champs[22].strong[0] = champs[25];
    champs[22].strong[1] = champs[0];
    champs[22].strong[2] = champs[110];
    champs[22].items[0] = "Chain Vest";
    champs[22].items[1] = "Randuins Omen";
    champs[22].items[2] = "Frozen Heart";

    champs[23].name = "Fizz";
    champs[23].weak[0] = champs[75];
    champs[23].weak[1] = champs[57];
    champs[23].weak[2] = champs[15];
    champs[23].strong[0] = champs[5];
    champs[23].strong[1] = champs[95];
    champs[23].strong[2] = champs[38];
    champs[23].items[0] = "Banshee's Veil";
    champs[23].items[1] = "Zhonya's Hourglass";
    champs[23].items[2] = "Quicksilver Sash";

    champs[24].name = "Galio";
    champs[24].weak[0] = champs[88];
    champs[24].weak[1] = champs[32];
    champs[24].weak[2] = champs[43];
    champs[24].strong[0] = champs[45];
    champs[24].strong[1] = champs[11];
    champs[24].strong[2] = champs[9];
    champs[24].items[0] = "Banshee's Veil";
    champs[24].items[1] = "Quicksilver Sash";
    champs[24].items[2] = "Mercury";

    champs[25].name = "Gangplank";
    champs[25].weak[0] = champs[61];
    champs[25].weak[1] = champs[22];
    champs[25].weak[2] = champs[31];
    champs[25].strong[0] = champs[60];
    champs[25].strong[1] = champs[0];
    champs[25].strong[2] = champs[90];
    champs[25].items[0] = "Chain Vest";
    champs[25].items[1] = "Aegis pf the Legion";
    champs[25].items[2] = "Randuins Omen";

    champs[26].name = "Garen";
    champs[26].weak[0] = champs[90];
    champs[26].weak[1] = champs[18];
    champs[26].weak[2] = champs[111];
    champs[26].strong[0] = champs[73];
    champs[26].strong[1] = champs[71];
    champs[26].strong[2] = champs[34];
    champs[26].items[0] = "Chain Vest";
    champs[26].items[1] = "Merc Treads";
    champs[26].items[2] = "Spirit of the Ancient Golem";

    champs[27].name = "Gragas";
    champs[27].weak[0] = champs[23];
    champs[27].weak[1] = champs[1];
    champs[27].weak[2] = champs[57];
    champs[27].strong[0] = champs[51];
    champs[27].strong[1] = champs[66];
    champs[27].strong[2] = champs[40];
    champs[27].items[0] = "Banshee's Veil";
    champs[27].items[1] = "Negatron Cloak";
    champs[27].items[2] = "";

    champs[28].name = "Graves";
    champs[28].weak[0] = champs[10];
    champs[28].weak[1] = champs[82];
    champs[28].weak[2] = champs[56];
    champs[28].strong[0] = champs[20];
    champs[28].strong[1] = champs[99];
    champs[28].strong[2] = champs[100];
    champs[28].items[0] = "Frozen Heart";
    champs[28].items[1] = "Randuin's Omen";
    champs[28].items[2] = "Ninja Tabi";

    champs[29].name = "Hecarim";
    champs[29].weak[0] = champs[60];
    champs[29].weak[1] = champs[76];
    champs[29].weak[2] = champs[0];
    champs[29].strong[0] = champs[43];
    champs[29].strong[1] = champs[2];
    champs[29].strong[2] = champs[14];
    champs[29].items[0] = "Chain Vest";
    champs[29].items[1] = "Randuin's Omen";
    champs[29].items[2] = "Shard of True Ice";

    champs[30].name = "Heimerdinger";
    champs[30].weak[0] = champs[87];
    champs[30].weak[1] = champs[114];
    champs[30].weak[2] = champs[51];
    champs[30].strong[0] = champs[39];
    champs[30].strong[1] = champs[40];
    champs[30].strong[2] = champs[15];
    champs[30].items[0] = "Banshee's Veil";
    champs[30].items[1] = "Negatron Cloak";
    champs[30].items[2] = "";

    champs[31].name = "Irelia";
    champs[31].weak[0] = champs[65];
    champs[31].weak[1] = champs[34];
    champs[31].weak[2] = champs[71];
    champs[31].strong[0] = champs[35];
    champs[31].strong[1] = champs[113];
    champs[31].strong[2] = champs[15];
    champs[31].items[0] = "";
    champs[31].items[1] = "";
    champs[31].items[2] = "";

    champs[32].name = "Janna";
    champs[32].weak[0] = champs[84];
    champs[32].weak[1] = champs[82];
    champs[32].weak[2] = champs[59];
    champs[32].strong[0] = champs[42];
    champs[32].strong[1] = champs[47];
    champs[32].strong[2] = champs[3];
    champs[32].items[0] = "Banshee's Veil";
    champs[32].items[1] = "";
    champs[32].items[2] = "";

    champs[33].name = "Jarvan IV";
    champs[33].weak[0] = champs[111];
    champs[33].weak[1] = champs[78];
    champs[33].weak[2] = champs[34];
    champs[33].strong[0] = champs[104];
    champs[33].strong[1] = champs[35];
    champs[33].strong[2] = champs[41];
    champs[33].items[0] = "Frozen Heart";
    champs[33].items[1] = "";
    champs[33].items[2] = "";

    champs[34].name = "Jax";
    champs[34].weak[0] = champs[52];
    champs[34].weak[1] = champs[80];
    champs[34].weak[2] = champs[26];
    champs[34].strong[0] = champs[0];
    champs[34].strong[1] = champs[22];
    champs[34].strong[2] = champs[110];
    champs[34].items[0] = "Frozen Heart";
    champs[34].items[1] = "Randuin's Omen";
    champs[34].items[2] = "";

    champs[35].name = "Jayce";
    champs[35].weak[0] = champs[111];
    champs[35].weak[1] = champs[107];
    champs[35].weak[2] = champs[31];
    champs[35].strong[0] = champs[14];
    champs[35].strong[1] = champs[34];
    champs[35].strong[2] = champs[90];
    champs[35].items[0] = "Randuin's Omen";
    champs[35].items[1] = "Frozen Heart";
    champs[35].items[2] = "Ninja Tabi";

    champs[36].name = "Jinx";
    champs[36].weak[0] = champs[20];
    champs[36].weak[1] = champs[13];
    champs[36].weak[2] = champs[100];
    champs[36].strong[0] = champs[10];
    champs[36].strong[1] = champs[100];
    champs[36].strong[2] = champs[44];
    champs[36].items[0] = "Warden's Mail";
    champs[36].items[1] = "Chain Vest";
    champs[36].items[2] = "";

    champs[37].name = "Karma";
    champs[37].weak[0] = champs[101];
    champs[37].weak[1] = champs[59];
    champs[37].weak[2] = champs[88];
    champs[37].strong[0] = champs[102];
    champs[37].strong[1] = champs[23];
    champs[37].strong[2] = champs[38];
    champs[37].items[0] = "Banshee's Veil";
    champs[37].items[1] = "Negatron Cloak";
    champs[37].items[2] = "";

    champs[38].name = "Karthus";
    champs[38].weak[0] = champs[39];
    champs[38].weak[1] = champs[23];
    champs[38].weak[2] = champs[40];
    champs[38].strong[0] = champs[110];
    champs[38].strong[1] = champs[6];
    champs[38].strong[2] = champs[57];
    champs[38].items[0] = "Banshee's Veil";
    champs[38].items[1] = "";
    champs[38].items[2] = "";

    champs[39].name = "Kassadin";
    champs[39].weak[0] = champs[88];
    champs[39].weak[1] = champs[57];
    champs[39].weak[2] = champs[23];
    champs[39].strong[0] = champs[38];
    champs[39].strong[1] = champs[40];
    champs[39].strong[2] = champs[9];
    champs[39].items[0] = "Banshee's Veil";
    champs[39].items[1] = "Negatron Cloak";
    champs[39].items[2] = "";

    champs[40].name = "Katarina";
    champs[40].weak[0] = champs[15];
    champs[40].weak[1] = champs[39];
    champs[40].weak[2] = champs[21];
    champs[40].strong[0] = champs[38];
    champs[40].strong[1] = champs[51];
    champs[40].strong[2] = champs[58];
    champs[40].items[0] = "Negatron Cloak";
    champs[40].items[1] = "";
    champs[40].items[2] = "";

    champs[41].name = "Kayle";
    champs[41].weak[0] = champs[67];
    champs[41].weak[1] = champs[5];
    champs[41].weak[2] = champs[33];
    champs[41].strong[0] = champs[17];
    champs[41].strong[1] = champs[113];
    champs[41].strong[2] = champs[80];
    champs[41].items[0] = "Banshee's Veil";
    champs[41].items[1] = "Negatron Cloak";
    champs[41].items[2] = "";

    champs[42].name = "Kennen";
    champs[42].weak[0] = champs[78];
    champs[42].weak[1] = champs[32];
    champs[42].weak[2] = champs[111];
    champs[42].strong[0] = champs[73];
    champs[42].strong[1] = champs[65];
    champs[42].strong[2] = champs[14];
    champs[42].items[0] = "Banshee's Veil";
    champs[42].items[1] = "Quicksilver Sash";
    champs[42].items[2] = "";

    champs[43].name = "Kha'Zix";
    champs[43].weak[0] = champs[46];
    champs[43].weak[1] = champs[72];
    champs[43].weak[2] = champs[34];
    champs[43].strong[0] = champs[39];
    champs[43].strong[1] = champs[7];
    champs[43].strong[2] = champs[95];
    champs[43].items[0] = "Chain Vest";
    champs[43].items[1] = "Vision Ward";
    champs[43].items[2] = "";

    champs[44].name = "Kog'Maw";
    champs[44].weak[0] = champs[36];
    champs[44].weak[1] = champs[82];
    champs[44].weak[2] = champs[17];
    champs[44].strong[0] = champs[10];
    champs[44].strong[1] = champs[7];
    champs[44].strong[2] = champs[100];
    champs[44].items[0] = "Negatron Cloak";
    champs[44].items[1] = "Frozen Heart";
    champs[44].items[2] = "Randuin's Omen";

    champs[45].name = "LeBlanc";
    champs[45].weak[0] = champs[24];
    champs[45].weak[1] = champs[57];
    champs[45].weak[2] = champs[23];
    champs[45].strong[0] = champs[1];
    champs[45].strong[1] = champs[66];
    champs[45].strong[2] = champs[114];
    champs[45].items[0] = "Banshee's Veil";
    champs[45].items[1] = "Negatron Cloak";
    champs[45].items[2] = "";

    champs[46].name = "Lee Sin";
    champs[46].weak[0] = champs[93];
    champs[46].weak[1] = champs[97];
    champs[46].weak[2] = champs[71];
    champs[46].strong[0] = champs[2];
    champs[46].strong[1] = champs[43];
    champs[46].strong[2] = champs[107];
    champs[46].items[0] = "Chain Vest";
    champs[46].items[1] = "";
    champs[46].items[2] = "";

    champs[47].name = "Leona";
    champs[47].weak[0] = champs[3];
    champs[47].weak[1] = champs[58];
    champs[47].weak[2] = champs[32];
    champs[47].strong[0] = champs[8];
    champs[47].strong[1] = champs[84];
    champs[47].strong[2] = champs[91];
    champs[47].items[0] = "Quicksilver Sash";
    champs[47].items[1] = "Banshee's Veil";
    champs[47].items[2] = "";

    champs[48].name = "Lissandra";
    champs[48].weak[0] = champs[39];
    champs[48].weak[1] = champs[51];
    champs[48].weak[2] = champs[5];
    champs[48].strong[0] = champs[40];
    champs[48].strong[1] = champs[23];
    champs[48].strong[2] = champs[113];
    champs[48].items[0] = "Negatron Cloak";
    champs[48].items[1] = "Banshee's Veil";
    champs[48].items[2] = "Hexdrinker";

    champs[49].name = "Lucian";
    champs[49].weak[0] = champs[100];
    champs[49].weak[1] = champs[20];
    champs[49].weak[2] = champs[17];
    champs[49].strong[0] = champs[99];
    champs[49].strong[1] = champs[36];
    champs[49].strong[2] = champs[10];
    champs[49].items[0] = "Chain Vest";
    champs[49].items[1] = "Glacial Shroud";
    champs[49].items[2] = "Warden's Mail";

    champs[50].name = "Lulu";
    champs[50].weak[0] = champs[85];
    champs[50].weak[1] = champs[84];
    champs[50].weak[2] = champs[82];
    champs[50].strong[0] = champs[91];
    champs[50].strong[1] = champs[47];
    champs[50].strong[2] = champs[59];
    champs[50].items[0] = "Banshee's Veil";
    champs[50].items[1] = "";
    champs[50].items[2] = "";

    champs[51].name = "Lux";
    champs[51].weak[0] = champs[88];
    champs[51].weak[1] = champs[23];
    champs[51].weak[2] = champs[40];
    champs[51].strong[0] = champs[38];
    champs[51].strong[1] = champs[78];
    champs[51].strong[2] = champs[53];
    champs[51].items[0] = "Banshee's Veil";
    champs[51].items[1] = "";
    champs[51].items[2] = "";

    champs[52].name = "Malphite";
    champs[52].weak[0] = champs[74];
    champs[52].weak[1] = champs[12];
    champs[52].weak[2] = champs[111];
    champs[52].strong[0] = champs[34];
    champs[52].strong[1] = champs[22];
    champs[52].strong[2] = champs[94];
    champs[52].items[0] = "Negatron Cloak";
    champs[52].items[1] = "";
    champs[52].items[2] = "";

    champs[53].name = "Malzahar";
    champs[53].weak[0] = champs[51];
    champs[53].weak[1] = champs[45];
    champs[53].weak[2] = champs[24];
    champs[53].strong[0] = champs[40];
    champs[53].strong[1] = champs[104];
    champs[53].strong[2] = champs[1];
    champs[53].items[0] = "Quicksilver Sash";
    champs[53].items[1] = "Banshee's Veil";
    champs[53].items[2] = "";

    champs[54].name = "Maokai";
    champs[54].weak[0] = champs[79];
    champs[54].weak[1] = champs[16];
    champs[54].weak[2] = champs[46];
    champs[54].strong[0] = champs[18];
    champs[54].strong[1] = champs[29];
    champs[54].strong[2] = champs[76];
    champs[54].items[0] = "Banshee's Veil";
    champs[54].items[1] = "";
    champs[54].items[2] = "";

    champs[55].name = "Master Yi";
    champs[55].weak[0] = champs[34];
    champs[55].weak[1] = champs[90];
    champs[55].weak[2] = champs[0];
    champs[55].strong[0] = champs[51];
    champs[55].strong[1] = champs[38];
    champs[55].strong[2] = champs[40];
    champs[55].items[0] = "Frozen Heart";
    champs[55].items[1] = "Chain Vest";
    champs[55].items[2] = "";

    champs[56].name = "Miss Fortune";
    champs[56].weak[0] = champs[92];
    champs[56].weak[1] = champs[17];
    champs[56].weak[2] = champs[10];
    champs[56].strong[0] = champs[20];
    champs[56].strong[1] = champs[100];
    champs[56].strong[2] = champs[28];
    champs[56].items[0] = "Frozen Heart";
    champs[56].items[1] = "Randuin's Omen";
    champs[56].items[2] = "";

    champs[57].name = "Mordekaiser";
    champs[57].weak[0] = champs[26];
    champs[57].weak[1] = champs[116];
    champs[57].weak[2] = champs[11];
    champs[57].strong[0] = champs[15];
    champs[57].strong[1] = champs[23];
    champs[57].strong[2] = champs[39];
    champs[57].items[0] = "Quicksilver Sash";
    champs[57].items[1] = "Banshee's Veil";
    champs[57].items[2] = "";

    champs[58].name = "Morgana";
    champs[58].weak[0] = champs[88];
    champs[58].weak[1] = champs[57];
    champs[58].weak[2] = champs[40];
    champs[58].strong[0] = champs[47];
    champs[58].strong[1] = champs[6];
    champs[58].strong[2] = champs[23];
    champs[58].items[0] = "Quicksilver Sash";
    champs[58].items[1] = "Banshee's Veil";
    champs[58].items[2] = "Zhonya's Hourglass";

    champs[59].name = "Nami";
    champs[59].weak[0] = champs[50];
    champs[59].weak[1] = champs[20];
    champs[59].weak[2] = champs[47];
    champs[59].strong[0] = champs[89];
    champs[59].strong[1] = champs[17];
    champs[59].strong[2] = champs[91];
    champs[59].items[0] = "Banshee's Veil";
    champs[59].items[1] = "";
    champs[59].items[2] = "";

    champs[60].name = "Nasus";
    champs[60].weak[0] = champs[90];
    champs[60].weak[1] = champs[73];
    champs[60].weak[2] = champs[26];
    champs[60].strong[0] = champs[21];
    champs[60].strong[1] = champs[0];
    champs[60].strong[2] = champs[94];
    champs[60].items[0] = "";
    champs[60].items[1] = "";
    champs[60].items[2] = "";

    champs[61].name = "Nautilus";
    champs[61].weak[0] = champs[79];
    champs[61].weak[1] = champs[97];
    champs[61].weak[2] = champs[102];
    champs[61].strong[0] = champs[40];
    champs[61].strong[1] = champs[19];
    champs[61].strong[2] = champs[34];
    champs[61].items[0] = "";
    champs[61].items[1] = "";
    champs[61].items[2] = "";

    champs[62].name = "Nidalee";
    champs[62].weak[0] = champs[67];
    champs[62].weak[1] = champs[110];
    champs[62].weak[2] = champs[23];
    champs[62].strong[0] = champs[35];
    champs[62].strong[1] = champs[26];
    champs[62].strong[2] = champs[14];
    champs[62].items[0] = "";
    champs[62].items[1] = "";
    champs[62].items[2] = "";

    champs[63].name = "Nocturne";
    champs[63].weak[0] = champs[65];
    champs[63].weak[1] = champs[97];
    champs[63].weak[2] = champs[79];
    champs[63].strong[0] = champs[95];
    champs[63].strong[1] = champs[14];
    champs[63].strong[2] = champs[46];
    champs[63].items[0] = "";
    champs[63].items[1] = "";
    champs[63].items[2] = "";

    champs[64].name = "Nunu";
    champs[64].weak[0] = champs[32];
    champs[64].weak[1] = champs[3];
    champs[64].weak[2] = champs[47];
    champs[64].strong[0] = champs[111];
    champs[64].strong[1] = champs[34];
    champs[64].strong[2] = champs[30];
    champs[64].items[0] = "";
    champs[64].items[1] = "";
    champs[64].items[2] = "";

    champs[65].name = "Olaf";
    champs[65].weak[0] = champs[42];
    champs[65].weak[1] = champs[40];
    champs[65].weak[2] = champs[111];
    champs[65].strong[0] = champs[33];
    champs[65].strong[1] = champs[73];
    champs[65].strong[2] = champs[79];
    champs[65].items[0] = "";
    champs[65].items[1] = "";
    champs[65].items[2] = "";

    champs[66].name = "Orianna";
    champs[66].weak[0] = champs[45];
    champs[66].weak[1] = champs[87];
    champs[66].weak[2] = champs[1];
    champs[66].strong[0] = champs[6];
    champs[66].strong[1] = champs[5];
    champs[66].strong[2] = champs[38];
    champs[66].items[0] = "";
    champs[66].items[1] = "";
    champs[66].items[2] = "";

    champs[67].name = "Pantheon";
    champs[67].weak[0] = champs[78];
    champs[67].weak[1] = champs[111];
    champs[67].weak[2] = champs[18];
    champs[67].strong[0] = champs[25];
    champs[67].strong[1] = champs[90];
    champs[67].strong[2] = champs[62];
    champs[67].items[0] = "";
    champs[67].items[1] = "";
    champs[67].items[2] = "";

    champs[68].name = "Poppy";
    champs[68].weak[0] = champs[65];
    champs[68].weak[1] = champs[14];
    champs[68].weak[2] = champs[90];
    champs[68].strong[0] = champs[25];
    champs[68].strong[1] = champs[94];
    champs[68].strong[2] = champs[73];
    champs[68].items[0] = "";
    champs[68].items[1] = "";
    champs[68].items[2] = "";

    champs[69].name = "Quinn";
    champs[69].weak[0] = champs[10];
    champs[69].weak[1] = champs[99];
    champs[69].weak[2] = champs[56];
    champs[69].strong[0] = champs[110];
    champs[69].strong[1] = champs[36];
    champs[69].strong[2] = champs[20];
    champs[69].items[0] = "";
    champs[69].items[1] = "";
    champs[69].items[2] = "";

    champs[70].name = "Rammus";
    champs[70].weak[0] = champs[93];
    champs[70].weak[1] = champs[16];
    champs[70].weak[2] = champs[65];
    champs[70].strong[0] = champs[94];
    champs[70].strong[1] = champs[55];
    champs[70].strong[2] = champs[0];
    champs[70].items[0] = "";
    champs[70].items[1] = "";
    champs[70].items[2] = "";

    champs[71].name = "Renekton";
    champs[71].weak[0] = champs[26];
    champs[71].weak[1] = champs[67];
    champs[71].weak[2] = champs[18];
    champs[71].strong[0] = champs[34];
    champs[71].strong[1] = champs[73];
    champs[71].strong[2] = champs[31];
    champs[71].items[0] = "";
    champs[71].items[1] = "";
    champs[71].items[2] = "";

    champs[72].name = "Rengar";
    champs[72].weak[0] = champs[34];
    champs[72].weak[1] = champs[22];
    champs[72].weak[2] = champs[67];
    champs[72].strong[0] = champs[43];
    champs[72].strong[1] = champs[111];
    champs[72].strong[2] = champs[0];
    champs[72].items[0] = "";
    champs[72].items[1] = "";
    champs[72].items[2] = "";

    champs[73].name = "Riven";
    champs[73].weak[0] = champs[24];
    champs[73].weak[1] = champs[65];
    champs[73].weak[2] = champs[34];
    champs[73].strong[0] = champs[60];
    champs[73].strong[1] = champs[110];
    champs[73].strong[2] = champs[0];
    champs[73].items[0] = "";
    champs[73].items[1] = "";
    champs[73].items[2] = "";

    champs[74].name = "Rumble";
    champs[74].weak[0] = champs[111];
    champs[74].weak[1] = champs[109];
    champs[74].weak[2] = champs[35];
    champs[74].strong[0] = champs[52];
    champs[74].strong[1] = champs[60];
    champs[74].strong[2] = champs[90];
    champs[74].items[0] = "";
    champs[74].items[1] = "";
    champs[74].items[2] = "";

    champs[75].name = "Ryze";
    champs[75].weak[0] = champs[11];
    champs[75].weak[1] = champs[9];
    champs[75].weak[2] = champs[5];
    champs[75].strong[0] = champs[23];
    champs[75].strong[1] = champs[101];
    champs[75].strong[2] = champs[42];
    champs[75].items[0] = "";
    champs[75].items[1] = "";
    champs[75].items[2] = "";

    champs[76].name = "Sejuani";
    champs[76].weak[0] = champs[109];
    champs[76].weak[1] = champs[46];
    champs[76].weak[2] = champs[58];
    champs[76].strong[0] = champs[29];
    champs[76].strong[1] = champs[40];
    champs[76].strong[2] = champs[19];
    champs[76].items[0] = "Quicksilver Sash";
    champs[76].items[1] = "";
    champs[76].items[2] = "";

    champs[77].name = "Shaco";
    champs[77].weak[0] = champs[46];
    champs[77].weak[1] = champs[73];
    champs[77].weak[2] = champs[106];
    champs[77].strong[0] = champs[4];
    champs[77].strong[1] = champs[55];
    champs[77].strong[2] = champs[54];
    champs[77].items[0] = "Vision Ward ";
    champs[77].items[1] = "";
    champs[77].items[2] = "";

    champs[78].name = "Shen";
    champs[78].weak[0] = champs[111];
    champs[78].weak[1] = champs[106];
    champs[78].weak[2] = champs[104];
    champs[78].strong[0] = champs[67];
    champs[78].strong[1] = champs[43];
    champs[78].strong[2] = champs[33];
    champs[78].items[0] = "Giants Belt";
    champs[78].items[1] = "";
    champs[78].items[2] = "";

    champs[79].name = "Shyvana";
    champs[79].weak[0] = champs[65];
    champs[79].weak[1] = champs[18];
    champs[79].weak[2] = champs[90];
    champs[79].strong[0] = champs[61];
    champs[79].strong[1] = champs[4];
    champs[79].strong[2] = champs[71];
    champs[79].items[0] = "Chain Vest";
    champs[79].items[1] = "";
    champs[79].items[2] = "";

    champs[80].name = "Singed";
    champs[80].weak[0] = champs[90];
    champs[80].weak[1] = champs[104];
    champs[80].weak[2] = champs[35];
    champs[80].strong[0] = champs[34];
    champs[80].strong[1] = champs[113];
    champs[80].strong[2] = champs[22];
    champs[80].items[0] = "Banshee's Veil";
    champs[80].items[1] = "";
    champs[80].items[2] = "";

    champs[81].name = "Sion";
    champs[81].weak[0] = champs[58];
    champs[81].weak[1] = champs[90];
    champs[81].weak[2] = champs[34];
    champs[81].strong[0] = champs[39];
    champs[81].strong[1] = champs[45];
    champs[81].strong[2] = champs[88];
    champs[81].items[0] = "Banshee's Veil";
    champs[81].items[1] = "Quicksilver Sash";
    champs[81].items[2] = "";

    champs[82].name = "Sivir";
    champs[82].weak[0] = champs[100];
    champs[82].weak[1] = champs[17];
    champs[82].weak[2] = champs[96];
    champs[82].strong[0] = champs[10];
    champs[82].strong[1] = champs[28];
    champs[82].strong[2] = champs[36];
    champs[82].items[0] = "Ninja Tabi";
    champs[82].items[1] = "Frozen Heart";
    champs[82].items[2] = "Randuin's Omen";

    champs[83].name = "Skarner";
    champs[83].weak[0] = champs[58];
    champs[83].weak[1] = champs[7];
    champs[83].weak[2] = champs[65];
    champs[83].strong[0] = champs[57];
    champs[83].strong[1] = champs[106];
    champs[83].strong[2] = champs[102];
    champs[83].items[0] = "Quicksilver Sash";
    champs[83].items[1] = "";
    champs[83].items[2] = "";

    champs[84].name = "Sona";
    champs[84].weak[0] = champs[8];
    champs[84].weak[1] = champs[47];
    champs[84].weak[2] = champs[91];
    champs[84].strong[0] = champs[96];
    champs[84].strong[1] = champs[32];
    champs[84].strong[2] = champs[64];
    champs[84].items[0] = "Negatron Cloak";
    champs[84].items[1] = "Quicksilver Sash";
    champs[84].items[2] = "";

    champs[85].name = "Soraka";
    champs[85].weak[0] = champs[56];
    champs[85].weak[1] = champs[93];
    champs[85].weak[2] = champs[8];
    champs[85].strong[0] = champs[38];
    champs[85].strong[1] = champs[98];
    champs[85].strong[2] = champs[50];
    champs[85].items[0] = "Morellonomicon";
    champs[85].items[1] = "";
    champs[85].items[2] = "";

    champs[86].name = "Swain";
    champs[86].weak[0] = champs[103];
    champs[86].weak[1] = champs[23];
    champs[86].weak[2] = champs[11];
    champs[86].strong[0] = champs[104];
    champs[86].strong[1] = champs[1];
    champs[86].strong[2] = champs[15];
    champs[86].items[0] = "Banshee's Veil";
    champs[86].items[1] = "Executioner";
    champs[86].items[2] = "Morellonomicon";

    champs[87].name = "Syndra";
    champs[87].weak[0] = champs[23];
    champs[87].weak[1] = champs[88];
    champs[87].weak[2] = champs[39];
    champs[87].strong[0] = champs[30];
    champs[87].strong[1] = champs[66];
    champs[87].strong[2] = champs[40];
    champs[87].items[0] = "Negatron Cloak";
    champs[87].items[1] = "Banshee's Veil";
    champs[87].items[2] = "";

    champs[88].name = "Talon";
    champs[88].weak[0] = champs[46];
    champs[88].weak[1] = champs[73];
    champs[88].weak[2] = champs[15];
    champs[88].strong[0] = champs[39];
    champs[88].strong[1] = champs[51];
    champs[88].strong[2] = champs[1];
    champs[88].items[0] = "Chain Vest";
    champs[88].items[1] = "Vision Ward";
    champs[88].items[2] = "";

    champs[89].name = "Taric";
    champs[89].weak[0] = champs[82];
    champs[89].weak[1] = champs[50];
    champs[89].weak[2] = champs[59];
    champs[89].strong[0] = champs[56];
    champs[89].strong[1] = champs[8];
    champs[89].strong[2] = champs[100];
    champs[89].items[0] = "Quicksilver Sash";
    champs[89].items[1] = "";
    champs[89].items[2] = "";

    champs[90].name = "Teemo";
    champs[90].weak[0] = champs[111];
    champs[90].weak[1] = champs[67];
    champs[90].weak[2] = champs[35];
    champs[90].strong[0] = champs[14];
    champs[90].strong[1] = champs[26];
    champs[90].strong[2] = champs[94];
    champs[90].items[0] = "Vision Ward";
    champs[90].items[1] = "Frozen Heart";
    champs[90].items[2] = "Negatron Cloak";

    champs[91].name = "Thresh";
    champs[91].weak[0] = champs[3];
    champs[91].weak[1] = champs[50];
    champs[91].weak[2] = champs[47];
    champs[91].strong[0] = champs[8];
    champs[91].strong[1] = champs[17];
    champs[91].strong[2] = champs[84];
    champs[91].items[0] = "Banshee's Veil";
    champs[91].items[1] = "";
    champs[91].items[2] = "";

    champs[92].name = "Tristana";
    champs[92].weak[0] = champs[13];
    champs[92].weak[1] = champs[17];
    champs[92].weak[2] = champs[10];
    champs[92].strong[0] = champs[56];
    champs[92].strong[1] = champs[10];
    champs[92].strong[2] = champs[100];
    champs[92].items[0] = "Frozen Heart";
    champs[92].items[1] = "Ninja Tabi";
    champs[92].items[2] = "Randuin's Omen";

    champs[93].name = "Trundle";
    champs[93].weak[0] = champs[90];
    champs[93].weak[1] = champs[42];
    champs[93].weak[2] = champs[67];
    champs[93].strong[0] = champs[46];
    champs[93].strong[1] = champs[111];
    champs[93].strong[2] = champs[70];
    champs[93].items[0] = "Chain Vest";
    champs[93].items[1] = "";
    champs[93].items[2] = "";

    champs[94].name = "Tryndamere";
    champs[94].weak[0] = champs[90];
    champs[94].weak[1] = champs[34];
    champs[94].weak[2] = champs[52];
    champs[94].strong[0] = champs[0];
    champs[94].strong[1] = champs[14];
    champs[94].strong[2] = champs[113];
    champs[94].items[0] = "Frozeb Heart";
    champs[94].items[1] = "Randuin's Omen";
    champs[94].items[2] = "Thornmail";

    champs[95].name = "Twisted Fate";
    champs[95].weak[0] = champs[23];
    champs[95].weak[1] = champs[15];
    champs[95].weak[2] = champs[1];
    champs[95].strong[0] = champs[75];
    champs[95].strong[1] = champs[19];
    champs[95].strong[2] = champs[48];
    champs[95].items[0] = "Negatron Cloak";
    champs[95].items[1] = "Banshee's Veil";
    champs[95].items[2] = "";

    champs[96].name = "Twitch";
    champs[96].weak[0] = champs[46];
    champs[96].weak[1] = champs[10];
    champs[96].weak[2] = champs[13];
    champs[96].strong[0] = champs[20];
    champs[96].strong[1] = champs[100];
    champs[96].strong[2] = champs[7];
    champs[96].items[0] = "Vision Ward";
    champs[96].items[1] = "Frozen Heart";
    champs[96].items[2] = "Randuin's Omen";

    champs[97].name = "Udyr";
    champs[97].weak[0] = champs[7];
    champs[97].weak[1] = champs[90];
    champs[97].weak[2] = champs[93];
    champs[97].strong[0] = champs[46];
    champs[97].strong[1] = champs[31];
    champs[97].strong[2] = champs[67];
    champs[97].items[0] = "Frozen Heart";
    champs[97].items[1] = "Randuin's Omen";
    champs[97].items[2] = "";

    champs[98].name = "Urgot";
    champs[98].weak[0] = champs[85];
    champs[98].weak[1] = champs[82];
    champs[98].weak[2] = champs[91];
    champs[98].strong[0] = champs[28];
    champs[98].strong[1] = champs[100];
    champs[98].strong[2] = champs[7];
    champs[98].items[0] = "Frozen Heart";
    champs[98].items[1] = "Chain Vest";
    champs[98].items[2] = "Randuin's Omen";

    champs[99].name = "Varus";
    champs[99].weak[0] = champs[28];
    champs[99].weak[1] = champs[49];
    champs[99].weak[2] = champs[92];
    champs[99].strong[0] = champs[17];
    champs[99].strong[1] = champs[10];
    champs[99].strong[2] = champs[100];
    champs[99].items[0] = "Frozen Heart";
    champs[99].items[1] = "Randuin's Omen";
    champs[99].items[2] = "";

    champs[100].name = "Vayne";
    champs[100].weak[0] = champs[10];
    champs[100].weak[1] = champs[17];
    champs[100].weak[2] = champs[69];
    champs[100].strong[0] = champs[49];
    champs[100].strong[1] = champs[82];
    champs[100].strong[2] = champs[36];
    champs[100].items[0] = "Frozen Heart";
    champs[100].items[1] = "Randuin's Omen";
    champs[100].items[2] = "";

    champs[101].name = "Veigar";
    champs[101].weak[0] = champs[75];
    champs[101].weak[1] = champs[23];
    champs[101].weak[2] = champs[88];
    champs[101].strong[0] = champs[38];
    champs[101].strong[1] = champs[1];
    champs[101].strong[2] = champs[95];
    champs[101].items[0] = "Quicksilver Sash";
    champs[101].items[1] = "Negatron Cloak";
    champs[101].items[2] = "";

    champs[102].name = "Vi";
    champs[102].weak[0] = champs[34];
    champs[102].weak[1] = champs[90];
    champs[102].weak[2] = champs[73];
    champs[102].strong[0] = champs[112];
    champs[102].strong[1] = champs[40];
    champs[102].strong[2] = champs[52];
    champs[102].items[0] = "Chain Vest";
    champs[102].items[1] = "";
    champs[102].items[2] = "";

    champs[103].name = "Viktor";
    champs[103].weak[0] = champs[88];
    champs[103].weak[1] = champs[87];
    champs[103].weak[2] = champs[45];
    champs[103].strong[0] = champs[86];
    champs[103].strong[1] = champs[40];
    champs[103].strong[2] = champs[74];
    champs[103].items[0] = "Banshee's Veil";
    champs[103].items[1] = "Quicksilver Sash";
    champs[103].items[2] = "";

    champs[104].name = "Vladimir";
    champs[104].weak[0] = champs[86];
    champs[104].weak[1] = champs[21];
    champs[104].weak[2] = champs[73];
    champs[104].strong[0] = champs[80];
    champs[104].strong[1] = champs[78];
    champs[104].strong[2] = champs[52];
    champs[104].items[0] = "Quicksilver Sash";
    champs[104].items[1] = "Banshee's Veil";
    champs[104].items[2] = "";

    champs[105].name = "Volibear";
    champs[105].weak[0] = champs[90];
    champs[105].weak[1] = champs[35];
    champs[105].weak[2] = champs[42];
    champs[105].strong[0] = champs[65];
    champs[105].strong[1] = champs[34];
    champs[105].strong[2] = champs[109];
    champs[105].items[0] = "Morellonomicon";
    champs[105].items[1] = "Frozen Heart";
    champs[105].items[2] = "";

    champs[106].name = "Warwick";
    champs[106].weak[0] = champs[1];
    champs[106].weak[1] = champs[2];
    champs[106].weak[2] = champs[3];
    champs[106].strong[0] = champs[4];
    champs[106].strong[1] = champs[5];
    champs[106].strong[2] = champs[6];
    champs[106].items[0] = "";
    champs[106].items[1] = "";
    champs[106].items[2] = "";

    champs[107].name = "Wukong";
    champs[107].weak[0] = champs[1];
    champs[107].weak[1] = champs[2];
    champs[107].weak[2] = champs[3];
    champs[107].strong[0] = champs[4];
    champs[107].strong[1] = champs[5];
    champs[107].strong[2] = champs[6];
    champs[107].items[0] = "";
    champs[107].items[1] = "";
    champs[107].items[2] = "";

    champs[108].name = "Xerath";
    champs[108].weak[0] = champs[1];
    champs[108].weak[1] = champs[2];
    champs[108].weak[2] = champs[3];
    champs[108].strong[0] = champs[4];
    champs[108].strong[1] = champs[5];
    champs[108].strong[2] = champs[6];
    champs[108].items[0] = "";
    champs[108].items[1] = "";
    champs[108].items[2] = "";

    champs[109].name = "Xin Zhao";
    champs[109].weak[0] = champs[1];
    champs[109].weak[1] = champs[2];
    champs[109].weak[2] = champs[3];
    champs[109].strong[0] = champs[4];
    champs[109].strong[1] = champs[5];
    champs[109].strong[2] = champs[6];
    champs[109].items[0] = "";
    champs[109].items[1] = "";
    champs[109].items[2] = "";

    champs[110].name = "Yasuo";
    champs[110].weak[0] = champs[1];
    champs[110].weak[1] = champs[2];
    champs[110].weak[2] = champs[3];
    champs[110].strong[0] = champs[4];
    champs[110].strong[1] = champs[5];
    champs[110].strong[2] = champs[6];
    champs[110].items[0] = "";
    champs[110].items[1] = "";
    champs[110].items[2] = "";

    champs[111].name = "Yorick";
    champs[111].weak[0] = champs[1];
    champs[111].weak[1] = champs[2];
    champs[111].weak[2] = champs[3];
    champs[111].strong[0] = champs[4];
    champs[111].strong[1] = champs[5];
    champs[111].strong[2] = champs[6];
    champs[111].items[0] = "";
    champs[111].items[1] = "";
    champs[111].items[2] = "";

    champs[112].name = "Zac";
    champs[112].weak[0] = champs[1];
    champs[112].weak[1] = champs[2];
    champs[112].weak[2] = champs[3];
    champs[112].strong[0] = champs[4];
    champs[112].strong[1] = champs[5];
    champs[112].strong[2] = champs[6];
    champs[112].items[0] = "";
    champs[112].items[1] = "";
    champs[112].items[2] = "";

    champs[113].name = "Zed";
    champs[113].weak[0] = champs[1];
    champs[113].weak[1] = champs[2];
    champs[113].weak[2] = champs[3];
    champs[113].strong[0] = champs[4];
    champs[113].strong[1] = champs[5];
    champs[113].strong[2] = champs[6];
    champs[113].items[0] = "";
    champs[113].items[1] = "";
    champs[113].items[2] = "";

    champs[114].name = "Ziggs";
    champs[114].weak[0] = champs[1];
    champs[114].weak[1] = champs[2];
    champs[114].weak[2] = champs[3];
    champs[114].strong[0] = champs[4];
    champs[114].strong[1] = champs[5];
    champs[114].strong[2] = champs[6];
    champs[114].items[0] = "";
    champs[114].items[1] = "";
    champs[114].items[2] = "";

    champs[115].name = "Zilean";
    champs[115].weak[0] = champs[1];
    champs[115].weak[1] = champs[2];
    champs[115].weak[2] = champs[3];
    champs[115].strong[0] = champs[4];
    champs[115].strong[1] = champs[5];
    champs[115].strong[2] = champs[6];
    champs[115].items[0] = "";
    champs[115].items[1] = "";
    champs[115].items[2] = "";

    champs[116].name = "Zyra";
    champs[116].weak[0] = champs[1];
    champs[116].weak[1] = champs[2];
    champs[116].weak[2] = champs[3];
    champs[116].strong[0] = champs[4];
    champs[116].strong[1] = champs[5];
    champs[116].strong[2] = champs[6];
    champs[116].items[0] = "";
    champs[116].items[1] = "";
    champs[116].items[2] = "";

    String hero = In.getString();

    for (int i = 0; i<117; i++)
    {

    if(hero.equals(champs[i].name))
    {
    System.out.println(champs[i].name);
    System.out.println(champs[i].weak[0]);
    System.out.println(champs[i].weak[1]);
    System.out.println(champs[i].weak[2]);
    System.out.println(champs[i].strong[0]);
    System.out.println(champs[i].strong[1]);
    System.out.println(champs[i].strong[2]);
    System.out.println(champs[i].items[0]);
    System.out.println(champs[i].items[1]);
    System.out.println(champs[i].items[2]);
    }

    }


    }

    }

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,616
    Rep Power
    5

    Default Re: Array Index Out of Bounds Exception? Please help quick!

    Your Champions array is of size 117. Yet you are referencing item 991 in line 204.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  3. #3
    sevatrix is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Re: Array Index Out of Bounds Exception? Please help quick!

    Thanks! I can't believe I missed that. Another problem :P

    When I'm imputing the champions the champion weaknesses and strengths aren't working as this is whats displayed instead of the names of the champs.

    Elise
    Champions@6a24eafa
    Champions@50152643
    Champions@4e0a39de
    Champions@5e35dc95
    Champions@618eabf6
    Champions@40a0a36
    Quicksilver Sash
    Banshee's Veil
    Negatron Cloak

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,616
    Rep Power
    5

    Default Re: Array Index Out of Bounds Exception? Please help quick!

    Not sure what you mean by not working. You are assigning instances of Champions to the array. And those are instances of what you are assigning.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  5. #5
    sevatrix is offline Member
    Join Date
    Jan 2014
    Posts
    4
    Rep Power
    0

    Default Re: Array Index Out of Bounds Exception? Please help quick!

    As in its supposed to be displaying the names of the champions based on which champ is selected it is supposed to display their counters and who they counter yet its displaying all that jibberish which is the memory location which isnt what I want.

  6. #6
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: Array Index Out of Bounds Exception? Please help quick!

    That's the default output of Object#toString(). If you want it to print something else, you need to override toString() or get the value you want and print that instead of the object.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. array index out of bounds exception, AGAIN!
    By samanyu in forum New To Java
    Replies: 8
    Last Post: 06-08-2011, 11:27 AM
  2. Help Array Index out of bounds exception
    By star400040 in forum New To Java
    Replies: 2
    Last Post: 12-10-2010, 10:24 PM
  3. Array Index Out Of Bounds Exception
    By manowar689 in forum New To Java
    Replies: 3
    Last Post: 06-18-2010, 11:25 PM
  4. array Index out of Bounds exception== 0
    By Allgorythm in forum New To Java
    Replies: 6
    Last Post: 02-11-2010, 04:02 PM
  5. Array Index Out of Bounds Exception
    By kool001 in forum New To Java
    Replies: 1
    Last Post: 12-03-2009, 07:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •