150 - Most Important Sample Programs Resolved


1) Write a java program to remove all white spaces from a given string. Answer
2)write a java program to find duplicate characters and their count in a given string? For example, in a string “Better Butter”, duplicate characters and their count is t : 4, e : 3, r : 2 and B : 2. Answer
3)Given an Integer array and target, write a function to return the number of pairs such that the sum of pair = target.Answer
4) Get the Number of Duplicate Elements in the List . Answer

No comments:

Post a Comment