Press "Enter" to skip to content

Java for beginners | Java for Kids | Java with Netbeans | Java Arrays and loops 10

Java arrays and loops with assignments part 3 – java latest version 2019

Next tutorial:

previous tutorial:

Q.1) print all the odd numbers in an array.
int[] x = {0,1,2,3,4,5,6,7,8,9,10};

Q.2) print all the even numbers in the array
int[] x = {0,1,2,3,4,5,6,7,8,9,10};

Q.3) print all the elements in reverse order.
String[] friends = {“Harry”,”James”,”Peter”,”Mark”,”Tom”, “Mike”,”Ali”,”Kim” };

Leave a Reply

Notify of