Variable inside variable Java : I would like to use the "int i", inside an if statement (where i wrote +i+), like so:


    for (int i = 0; i <6; i++) { 
     if (mouseX > mindmap.c+i+mX - mindmap.c+i+.mD / 2 && mouseX < mindmap.c+i+.mX + mindmap.c+i+.mD / 2) {
      if (mouseY > mindmap.c1.mY - mindmap.c1.mD / 2 && mouseY < mindmap.c1.mY + mindmap.c1.mD / 2) {
        println("hej");
      }
    }
  
Can this be done?
We are using Processing as the tool. 