- Swapping Two Numbers
- Factorial Number
- Fibonacci Series
- Armstrong Number
- Perfect Number
- Palidrome
- String Reverse without using built-in method
- String count repeated character
- String array word count
- Find duplicate remove string array
String Programs
-
Write a java program to reverse a given string without using any built-in method.
For eg: If the input is "Arunkumar", the output shoud be "ramuknurA". -
Given an alphanumeric string, write a java program to construct a new string where each letter in the original string is repeated a number of times equal to the next numeric character in the string,
For eg: If the input is "a2b3c4", the output should be "aabbbcccc". -
Given an alphanumeric string, write a java program to extract only the alphanumeric characters from the string without using built-in methods like
Character.isLetter()
.
For eg: If the input is "a2b3c4", the output should be "abc". -
Given an alphanumeric string, write a java program to extract only the numeric characters from the string without using built-in methods like
Character.isDigit()
.
For eg: If the input is "a2b3c4", the output should be "234". -
Write a java program to extract specific value from a input string based on user input at runtime.
String input = "/Name= "Arunkumar"/CompanyName ="ABC Company"/Experience="1 year"";
If the user enter = "CompanyName", the program should return "ABC Company".
Java8 Features Programming
- Searching, Sorting, Finding elements using stream.