The if else if loop is useful when there is more than one condition is present. Syntax: if(condition) { ................... statements; .................. } else if (condition) { ................... statements; .................. } .................. .................. else if (condition) { ................... statements; .................. } else { ................... statements; .................. } In this type of loop we can check any number of conditions. If any of the condition associated with the if else if block is found to be a true, then the statement associated with that block only executes. If a bock is found to be a true one, then all the else if and else blocks coming after the true block is skip from further checking. If non of the condition are found to be true then only the else part executes. Example: import java.io.*; class VowelCheck { public stati...
Computer Programming Video Tutorials