Tag Archives: loop

3,024 views

Continue statement Java example

For and continue statement in Java. public class MainClass { public static void main(String[] arg) { String[] arrayOfString = { "Hello", "people", "hello", "world!" };   for (int i = 0; i < arrayOfString.length; i++){ if(arrayOfString[i].equals("hello")) continue; // skip to … Continue reading

Posted in Android Examples Code | Tagged , , , , | Comments Off on Continue statement Java example
3,909 views

For cycle loop in Java example

Cycle for in Java example public class MainClass { public static void main(String[] arg) { String[] arrayOfString = { "Hello", "people", "hello", "world!" };   for (int i = 0; // start position , first cycle i == 0 i … Continue reading

Posted in Android Examples Code | Tagged , , , , , , , | Comments Off on For cycle loop in Java example