i need to use the value of i outside of the loop :     for(int i = 0 ; i < Tri.length; i++)
            
            
                for(int v = 1; v < Tri.length;v++)
                {

                    boolean plz= Tri[i].compareColors(Tri[v]);
                    if(v==i)
                    continue;
                    if(plz == true )
                        System.out.println("Trinagle " + i + " is equal to  Triangle "+ v+ " "+  plz);
                }

i need to use the value of i outside of the loop.Currently the print statement is being looped 21 X more than what i need. Is there any way i can access  'i' with having all my code in a for loop
