Practical No. 4: Develop programs to demonstrate use of switch - case statement and conditional if (?:)

1) Write any program using switch-case statement        For Program Click here Practical Related Questions 1) What will happen if bre...
Read More

9 Find greatest of three number using Ternary Operator in Java.

Ternary.java class Ternary { public static void main( String args[] ) { int a = Integer.parseInt( args[0] ); int b = Integer....
Read More

8 Program to count number of vowels and consonant from an input String in Java.

Vowel.java import java.util.Arrays; class Vowel { public static void main(String args[]) { String str = args[0]; char[] ...
Read More

Practical No 3: Develop program to demonstrate use of if statements and its different forms.

Write any Program to check multiple conditions using if statement. Logic.java class Logic { public static void main( String args[] ...
Read More