You are on page 1of 1

1.

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.

3. Write a program to check Armstrong number. Armstrong number is the number


which is the sum of the cubes of all its unit, tens and hundred digits for three digit
number.

4. Write a program to convert a number from octal to decimal representation.

5. Write a program which takes two numbers as input from user and calculate their
GCD (greatest common divisor)

You might also like