IndexOutOfBoundsException: Index: 1, Size: 1, bizzard
Bonjour, j'ai une exception de type outofbound alors que j'instancie mon objet après chaque iteration. quelqu'un pourrait m'aider svp
Code:
1 2 3 4 5
|
int i = 0 ;
String type="";
while(itr.hasNext()){
type = infoCompte.getInformationSolde().getDetailCompte().get(i).getType(); |
Exception:
Code:
1 2 3 4
|
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322) |