indexoutofthebounds exception error

arshad arshad3m at gmail.com
Wed Jul 14 18:57:58 UTC 2010


hi can someone please tell me, why i get indexoutofthebound exception
for this: (i+1)
arraylist mydeck size is 52.

thanks a lot.

for(int i=0;i<d.mydeck.size();i++){
            pileOne.add(d.mydeck.get(i));
            pileTwo.add(d.mydeck.get(i+1));
//            pileThree.add(d.mydeck.get(i+2));
//            pileFour.add(d.mydeck.get(i+3));
        }







More information about the discuss mailing list