- Find duplicate characters and their count in a given string.
- String is palindrome or not using the string Buffer class.
- Reverse a sentence word by word
- Remove all vowels from a string.
- Clock - anticlockwise String
- employee
│ Emp.java
│
└───com
│ Main.java
- Exception
- accept 3 nos. From command line arguments and print maximum, minimum and total of all three nos.
- WAP to find the pair of twin prime number between the specific range .
Hint: twin prime number means the difference between prime numbers is
equal to 2 .
- WAP to check the whether a given number is Harshad number or given number or not. For example, 21 is a Harshad number because 21 is divisible by the sum
of its digits (2+1=3) .
- fibonacci
- check whether given number belongs to Fibonacci series or not in specified range. For example, 34 belongs to Fibonacci series whereas 51 doesn’t belongs to Fibonacci series
- //WAP to print the following pyramid using loops in java
// 1
// 1 2 1
// 1 2 3 2 1
// 1 2 3 4 3 2 1
// 1 2 3 4 5 4 3 2 1
// 1 2 3 4 5 6 5 4 3 2 1
// 1 2 3 4 5 6 7 6 5 4 3 2 1
// 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
// 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1
lists
Star pattern
SWiiiiiiing