Learning Java – (Video 4) Tutorial Series – Decision Making

Learning Java Decision Making Example, this is fourth video in the series of Learning Java. In this video basics about decision making statements like if, if-else, nested if-else are explained.

If you feel this video is useful, Please share it with your friends on Facebook, twitter & Google plus etc.

Code developed in this tutorial provided below:

public class HelloWorld {
	 * @param args
	public static void main(String[] args) {
	public static void verifyNestedIfs(int a){
		if(a%2 == 0){
			System.out.println("inout a is divisable by 2");
		}else if(a%3 ==0){
			System.out.println("inout a is divisable by 3");
		}else {
			System.out.println("Input a is NOT divisable by 2 or 3");

For further reading refer Java Programming Category posts.

Share this post

Learning Java Decision Making Example
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *