## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

# Error with summing elements in ArrayList.

Here is my code:

```import java.io.*;
import java.math.*;
import java.text.*;
import java.util.*;
import java.util.regex.*;

class Fibonacci
{
long f1=0;
long f2=1;
long f3=0;
int start, end;
static ArrayList<Integer> evenFibArrList = new ArrayList<Integer>();
static int evenFibSum = 0;

void get() throws IOException
{

System.out.print("\nEnter the start limit: ");

System.out.print("\nEnter the end limit: ");

System.out.println("\nFibonacci numbers between " + start + " and " + end + " are:" );
}

void display()
{
for (int i = start; i < end; i++)
{
if (f3 <= end)
{
if (f3 >=start)
{
System.out.println(f3);

if (f3 % 2 == 0)
{

for(int s = 0; s < evenFibArrList.size(); s++)
{
//evenFibSum += evenFibArrList.get(s);
}
}
}
f1 = f2;
f2 = f3;
f3 = f1 + f2;
}
}
}

public static void main(String args[]) throws IOException
{
Fibonacci fib = new Fibonacci();
fib.get();
fib.display();
System.out.println(evenFibArrList);
System.out.println(evenFibSum);
}
}
```

I am trying to add the elements of an array list together and print the sum. Here is the error:

Fibonacci.java:42: error: no suitable constructor found for Integer(long)