Question: Question 1 Problem: Given an array of integers, find the second largest number in the array and print it . Question 2 Problem: Given a

Question 1 Problem: Given an array of integers, find the second largest number in the array and print it.
Question 2Problem: Given a string, reverse it without using built-in functions and print the reversed string.
Question 3Problem: Create a class Circle with attributes radius and color, and methods to calculate area and circumference. Write a program to create instances of Circle, calculate their area and circumference, and print the results.
Question 4Problem: Write a program that asks the user for a number and computes the square root of that number. Handle exceptions if the user enters a negative number.
Question 5Problem: Given an ArrayList of integers, write a program to remove all duplicate elements and print the modified ArrayList.
Question 6Problem: Create a class Employee with attributes id (int) and name (String). Write a program to create an ArrayList of Employee objects, add some objects to the list, and then sort the list based on employee IDs in ascending order.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!