Core Java Assignment 10
1. Create a list with elements – "d2", "a2", "b1", "b3", "c" and filter the elements that start with "a" and print the element in uppercase. 2. Create a […]
1. Create a list with elements – "d2", "a2", "b1", "b3", "c" and filter the elements that start with "a" and print the element in uppercase. 2. Create a […]
1) Given the daily stock prices of a share during last 30 days, write a program to find out best buying and selling dates for maximum gain. for ex: index […]
1) I have 3 classes called Hospital and Doctor, and Patient as below Class Hospital { String hospitalName; Doctor doc; Address hospitalAddress; } Doctor { […]
Write in to file using BufferedWriter? Identify number of words in your file? Write a logic to replace one word with another ? Write a program to create an xls […]
1) Write a program to display <b> 2 dimensional multiplication table</b> based on user input? for example, if user enters 2 then the output should display 2*1=2 . . . […]
1) I have two classes Employee and Department as shown below. class Employee { int id; String name; Department dept; double salary; //setter/getter methods //override equals method //override toString //override […]
Assignment on Strings: String s =”This is a java class” How many words in a String? Length of the String? How many single character words in the String? Reverse each […]
Program 1: Write a program to take the inputs in the following order and display the result as shown below. Your program should use primitive arrays and for loop to […]
1) Try implementing Two interfaces with same method name & signature and same return type? 2) Try implementing Two interfaces with same method name with different return type ? 3) […]
1) Write a program to find minimum of 4 numbers? 2) Write a program to print odd numbers from 1 to 100 ? 3) Write a program to find whether […]