Hello Friends,

This example of Java programming will teach you the coding for **Finding the Even And Odd Number** .

In JAVA **There is basic functionality**.** **

**If we divide any number by 2 and reminder is 0 then the number is even, otherwise it is odd**.

And This Even or Odd Number Example Code **Given Below**.

/*

* http://devappandroid.com/

*

* Even Odd Number Example This Java Even Odd Number Example Show Even

* Number And Odd Number

*/// Create Integer Variable.

int length = 50;for (int i = 1; i

/*

* In For loop it given 1 to 50 Number. If we divide any number by 2

* and reminder is 0 then the number is even, otherwise it is odd.

*/if (i % 2 == 0) {

Log.v(“log_tag”, “In Even Number ” + i);

} else {

Log.v(“log_tag”, “In Odd Number ” + i);

}

}

Enjoy Code.