import com.rigfort.wallet.server.ethereum.EthereumWallet; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest(classes= Application.class) public class TesTest { @Test public void TestTs1() throws InterruptedException { int[] num = {0,1,2,3,4,5,6}; for(int i =0; i<=num.length; i++){ i = (i % (num.length)); System.err.println("i:"+num[i]); Thread.sleep(1000); } } }
【数组无限环形遍历】
于 2022-08-30 19:20:47 首次发布