Is there a command in java to make the program go back to the beginning of a loop

后端 未结 5 823
独厮守ぢ
独厮守ぢ 2021-01-22 12:22

I am trying to make a typing adventure kind of game in java, however i need a command at least similar to the one in the title, here is the code

import java.util         


        
5条回答
  •  庸人自扰
    2021-01-22 12:47

    use continue; with unconditional loop for example

    while(true){/* your code*/}
    

提交回复
热议问题