I am currently trying to create a string of code that if something is true it will go to a certain line in the code... ex:
1 boolean hi = true;
2 boolean hey = true;
3
4 if(hi){
5 hi=false;
6 System.out.println("HI");
7 }
8
9 if(hey=true){
10 hi=true;
11 hey=false;
12 //GO BACK TO LINE 3
13 }
14
That is a much simpler version of what im trying to do so if you have any ways to do this please help me