Professional Documents
Culture Documents
Java 2
Java 2
) Write a Java program to check if given number is odd or even and increment and decrement the
given value
Q.) Write a Java program to check for string length and change cases using toUpperCase() and
toLowerCase()
Q.) Write a Java program to check for leap year
Q.) Write a Java program to print perimeter and area of rectangle by user’s input
Q.) Write a Java program to check whether given number is prime or not
Q.) Write a Java program to check whether a student is pass or fail (for passing marks >=50)
Q.) Write a Java program to check vowels using Switch statements
Q.) Write a Java program to make basic calculator
Q.) Write a Java program checking for the weekday using day number
Q.) Write a Java program for Adding Digits Of given number