You need to give the getSum() method a parameter that accepts an int[]. Then you need to send it the int[] when you call the method:
public int getSum(int[] arr)
{
int sum=0;
...
Type: Posts; User: aussiemcgr
You need to give the getSum() method a parameter that accepts an int[]. Then you need to send it the int[] when you call the method:
public int getSum(int[] arr)
{
int sum=0;
...