Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~139 People Reached
Favorite Forums
Favorite Tags
java x 2
Member Avatar for wuguo

I got the IndexOutOfBoundException in the following code. but I cannot find where went wrong. import java.util.ArrayList; public class sumArrayList { public static int calculateSumArrayList(ArrayList<Integer> Integers) { ArrayList<Integer> duplicate=new ArrayList<Integer>(); for (int i=1;i<=Integers.size();i++) { duplicate.set(i,Integers.get(i-1)); } return calculateSumArrayListHelper(Integers); } private static int calculateSumArrayListHelper(ArrayList<Integer> Integers) { //first: arrayList size 0 if …

Member Avatar for NormR1
0
139