Professional Documents
Culture Documents
Write a program to remove duplicates from an array in Java without using the Java
Collection API. The array can be an array of String, Integer or Character, your solution
should be independent of the type of array.
2. Write a program to check if two given String is Anagram of each other. Your function
should return true if two strings are Anagram, false otherwise.
A string is said to be an anagram if it contains same characters and same length but
in different order e.g. army and Mary are anagrams.
5. Write a program which takes two numbers as input from user and calculate their
GCD (greatest common divisor)