Now, you have to learn about the syntax of If-Else construct.
Tutorial Details:
Given example reads a integer value and check weather number is Odd or Even. In this example you will learn how to determine the Even or Odd for the given number entered through the keyboard.
If the given condition is true then print the message Given number is Even otherwise the control of the program will jumps in the else block and print the message Given number is Odd.
Rate Tutorial: http://www.roseindia.net/java/beginners/IfElse.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Check Even-Odd:-Example
View Tutorial: Check Even-Odd:-Example
Related
Tutorials:
|