Tag Archives: do while

8,399 views

do while cycle Java basic example

do while Java example public class MainClass { public static void main(String[] arg) { String[] arrayOfString = { "Hello", "people", "hello", "world!" }; int i = 0; // first cycle is always executed do { System.out.println("Loop: " + i); System.out.println(arrayOfString[i]); … Continue reading

Posted in Android Examples Code | Tagged , , , , | Comments Off on do while cycle Java basic example