I want to have two loop variables of different types. Is there any way to make this work?
@Override public T get(int index) throws IndexOutOfBoundsException
Variables declared in the initialization block must be of same type
we can't initialize the different data types in the for loop as per their design. I'm just putting a small example.
for(int i=0, b=0, c=0, d=0....;/*condition to be applied */;/*increment or other logic*/){ //Your Code goes here }