please check the following piece of code and give the correct code as my program is showing some error. here is the code.
public class passingArray
{
public int getCipherText(int[] c, int len)
{
int cipher = 0;
int e = 7;
int n = 130;
cipher = (int)((Math.pow(c[len],e)) % n);
return cipher;
}
}
public class array1
{
public static void main(String[] ar)
{
int m[] = {2.4,5};
int l = m.length;
passingArray a = new passingArray();
int ct = a.getCipherText(m[], l);
System.out.print(ct);
}
}