Q:

Calling a Method Java

I want to call this method:
 public int ArraySum(int[] a)
    {
        int sum = 0;
        int Element;
        for(Element = 0; Element < a.length; Element++)
        {
            sum = sum + a[Element];
        }
        return sum;
    }

in this method (which is in a different class):
public int Mean()
    {
        return (something.ArraySum(a))/2;
    }

I know that I probably need to create an object but I'm not sure exactly how.

A:

Just an example:
public class C1
{
    //all the fields and stuff
    public int hello(int a)
{
     //all the code
}
    public static int hey(int a)
    {
     //all code
}
}

Note: One of the functions is static. Observe how we call them.
public class C2
{
 //all fields and stuff
 public void callerFunction()
{
    C1 obj=new C1();
     //created an object of class C1
    obj.hello(5);
    C1.hey(10);
     //only class name is required while calling static methods.
}
}

