0% found this document useful (0 votes)
9 views

Lab Questions

Java questions

Uploaded by

Jiju Abutelin Ja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Lab Questions

Java questions

Uploaded by

Jiju Abutelin Ja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab1.1 How to Print an Integer entered by an user?

Lab1.2 Write a Java program to Check whether a number is even or odd using if...else
statement

Lab1.3 Write a Java program to Check whether a number is even or odd using ternary
operator

Lab1.4 Write a Java Program to Make a Simple Calculator Using switch...case

Lab1.5 Write a Java Program to Check whether an alphabet is vowel or consonant

Lab1.6 Write a Java Program to Add Two Integers and display the result

Lab1.7 Write a Java Program to Multiply two Floating Point Numbers

Lab1.8 Write a Java Program to Find ASCII Value of a character

Lab1.9 Write a Java Program to Swap two numbers using temporary variable

Lab1.10 Write a Java Program to Swap two numbers without using temporary variable

Lab2.1Write a Java Program to Find the Largest Among Three Numbers

Lab2.2Write a Java Program to check if the given year is a leap year or not.

Lab2.3Write a Java Program to Check Whether a Character is Alphabet or Not

Lab2.4Write a Java Program to Calculate the Sum of Natural Numbers

Lab2.5Write a Java Program to Find Factorial of a Number

Lab2.6Write a Java Program to Generate Multiplication Table

Lab2.7Write a Java Program to Display Fibonacci Series

Lab2.8Write a Java Program to Display Characters from A to Z using loop

Lab2.9Write a Java Program to Count Number of Digits in an Integer

Lab3.1 Write a Java Program to Reverse a Number

Lab3.2 Write a Java Program to Calculate the Power of a Number

Lab3.3 Write a Java Program to Check Whether a Number is Palindrome or Not

Lab3.4 Write a Java Program to Check Whether a Number is Prime or Not

Lab3.5 Write a Java Program to Calculate Average Using Arrays

Lab3.6 Write a Java Program to Find Largest Element of an Array


Lab3.7 Write a Java Program to Calculate Difference Between Two Time Periods

Lab3.8 Write a Java Code To Create Pyramid and Pattern

Lab3.9 Write a Java Program to Remove All Whitespaces from a String

Lab4.1 Write a Java Program to Print an Array

Lab4.2 Write a Java Program to Convert String to Date

Lab4.3 Write a Java Program to Round a Number to n Decimal Places

Lab4.4 Write a Java Program to Concatenate Two Arrays

Lab4.5 Write a Java Program to Convert Character to String and Vice-Versa

Lab4.6 Write a Java Program to Check if An Array Contains a Given Value

Lab4.7 Write a Java Program to Check if a String is Empty or Null

Lab4.8 Write a Java Program to Get Current Date/TIme

Lab4.9 Write a Java Program to Append Text to an Existing File

You might also like