The string is the most widely used class in Java programming. That’s why String programs are used in Java interviews to access coding skills.
String Programs in Java with Output
Here is a list of String Programs with output. The source code from these String programs was well-tested in our development environment. We have used JDK 8 or later to develop these programs.
- Java Program to Find the First Non-repeated Character in a String
- Java Program to Check Palindrome String
- Java Program to Find Duplicate Characters in a String
- Java Program to Find Duplicate Words in a String
- Java Program to Find All the Permutations of a String
- Java Program to Count Occurrences of Words in a String
- Java Program to Count the Occurrences of Each Character
- Java Program to Count Vowels and Consonants in a String
- Java program to Count the Number of Duplicate Words in a String
- Java Program to Count Number of Words in Given String
- Java Program to Count the Number of Occurrences of Substring in a String
- Java Program to Count the Occurrences of Each Character in String
- Java Program to Merge Two String Arrays
- Java Program to Remove Duplicate Words from String
- Java Program to Reverse a String(5 ways)
- Java Program to Reverse Each Word of a String
- Java Program to Swap Two Strings
- How to Check if the String Contains Only Digits
- How to Check if the String Contains Only Letters
- How to Check If the String Contains Only Letters or Digits
- Java Program to Swap Two Strings Without Using Third Variable
You may be interested to learn String examples. Check out below String conversion examples.
Java String Conversion Examples
Conversion from String to Wrapper classes or Primitive types
- Java Convert Integer to String Example
- Java Convert Float to String Example
- Java Convert Double to String Example
- Java Convert Short to String Example
- Java Convert Long to String Example
- Java Convert Character to String Example
- Java Convert Byte to String Example
- Java Convert Boolean to String Example
- Java Convert String To Short Example
- Java Convert String To Long Example
- Java Convert String To Integer Example
- Java Convert String To Float Example
- Java Convert String To Double Example
- Java Convert String To Byte Example
- Java Convert String To Boolean Example
Java String API Guides and Tutorials
- Java String Class API Guide
- Guide to Java String Constant Pool
- Java String Methods with Examples
- Guide to String Best Practices in Java (Best Practice)
- String Special Operations with Examples
- String Comparison Methods with Examples
- String Methods for Character Extraction
- String Searching Methods with Examples
- String Modifying Methods with Examples
- Java 8 StringJoiner Class
Comments
Post a Comment
Leave Comment