I was wondering if in Java there is a function like the python range function.
range(4)
and it would return
[0,1,2,3]
Its not available that true. But you make a static method and use it -
public static int[] range(int index){ int[] arr = new int[index]; for(int i=0;i