Hi,
I have this code line:
x
and k
are int
.
lm
is an array
lz=[f(x,lm[:j]+lm[j+1:],k) for j in range(n)]
My question is:
I want to convert the above line into Java...
I have created an lm
array in Java, but I am thinking of making it an arraylist to avoid the problem of the array length.
I know that for instanse lm
is [1, 4, 1, 9]
. Then the output list will be:
[4, 1, 9],[1, 1, 9],[1, 4, 9],[1 ,4,1]
But I am a little bit confused about the way to implement it in Java ...
Any help is appreciated..
Thanks