Write a java program to find average of elements in Hashmap.
Write code to find out the average of all values whose keys are even numbers. Round the average to two decimal places and return as
Write code to find out the average of all values whose keys are even numbers. Round the average to two decimal places and return as
Write a program to input a String and swap every 2 characters in the string. If the size is an odd number then keep the
Write a program to input a string and a character, and remove that character from the given String. Print the final string. Input and Output
Write a program to input a person’s name in the format “FirstName LastName” and return the person’s name in the following format – “LastName, InitialOfFirstName”.
Write java code to count the common and unique letters in the two strings. If a character appears more than once in the 1st string.
Write a program to read a file name as a string and find out the file extension and return it as output. For example, the
Write a java code to get two date strings as input and write code to find the difference between two dates in days. The return type
Write a program to read a string and validate the IP address. Print “Valid” if the IP address is valid, else print “Invalid”. Input and
Write a program to get an int array as input and identify even and odd numbers. Use the following rules: If the number is odd
Given a method with two date strings in “yyyy-mm-dd” format as input. Write code to find the difference between two dates in months. The return type