Category: Problem Solving

Write a java program to check Anagram.

Write a program to check whether the two given strings are anagrams. Note: Rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once is called Anagram.” returns an int. The method returns 1 if the 2 strings are anagrams. Else it returns -1.

Write a java program for ArrayList and Set Operations.

Write a program that performs the following actions: Read 2n integers as input & a set operator (of type char). Create two arraylists to store n elements in each arraylist. Write a function performSetOperations which accepts these two arraylist and the set operator as input. The function would perform the following set operations:. ‘+’ for SET-UNION ‘*’

Write a java program to find Day of Week.

Write a program to read a string containing date in DD/MM/YYYY format and prints the day of the week that date falls on. Return the day in the lowercase letter (Ex: Monday). Input and Output Format: Input consists of a string. The output consists of a string. Refer sample output for formatting specifications. Sample Input