Write a java program to modify a string.
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 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
Write a program to remove all the elements of the given length and return the size of the final array as output. If there is
Write a code get a password as string input and validate using the rules specified below. Apply following validations: Minimum length should be 8 characters.
Write a program to find out the sum of common elements in given two arrays. If no common elements are found print – “No common