Java-Lab-Exercises
Java-Lab-Exercises
EXERCISE 01: Write a Java program to convert temperature from Celsius to Fahrenheit
degrees.
Test Data
Input a degree in Celsius: 100.0
Expected Output:
100.0 degree Celsius is equal to 212 in Fahrenheit
EXERCISE 02: Write a Java program for temperature conversion with below options.
TempConverterApp.java
1) Celsius to Fahrenheit
2) Fahrenheit to Celsius
3) Exit
EXERCISE 04: Write a Java program to sort the given set of numbers
EXERCISE 05: Write a Java program to sort the given set of strings
1. Create Account
2. Update Account
3. View Account
4. Deposit Amount
5. Withdraw Amount
6. Close Account
7. Exit
Account:
int id
String name
String type
double balance
Boolean status
EXERCISE 07: Write a program to perform CRUD operations with Order using ArrayList
Order:
int id
String description
String category
int quantity
double price
EXERCISE 08: Write a program to perform CRUD operations with Order using HashSet
EXERCISE 09: Write a program to perform CRUD operations with Order using HashMap
and also show below details
EXERCISE 10: Write a generic program to sort given set of data [numbers or strings or
objects] using Java Generics
EXERCISE 11: Write a program to read/write Order details from file system using Java
File IO
EXERCISE 12: Write a multi-threading program to read/write Order details from using
Java File IO asynchronously
EXERCISE 13: Write a program to perform CRUD operations with Order using JDBC
EXERCISE 14: Write a program to perform validations on Order using Lambda
Expressions and also show below details using Stream API
EXERCISE 15: Write a Junit program to test the OrderService performing CRUD
operations