Advertisement
Advertisement
// else if statement example
public class ElseIf
{
public static void main(String... ar)
{
if(99>100)
System.out.println("99 is greater than 100");
else if(99<90)
System.out.println("99 is less than 90");
else
System.out.println("99 is greater than 90 and less than 100");
}
}
99 is greater than 90 and less than 100
Advertisement
Advertisement
Please check our latest addition
C#, PYTHON and DJANGO
Advertisement