๐ŸŽ‰ Special Offer !    Code: GET300OFF    Flat โ‚น300 OFF on every Java Course
Grab Deal ๐Ÿš€

String Programs in Java  


Programs List

Very Easy Level Programs

  • 1 WAP to get a character from the given String
  • 2 WAP to iterate over characters in a String
  • 3 WAP to reverse a given String
  • 4 WAP to check if a given String is Palindrome or not
  • 5 WAP to print even length words in a given String

Easy Level Programs

  • 6 WAP to add characters to a String
  • 7 WAP to insert one String into another String
  • 8 WAP to count the number of words in a String
  • 9 WAP to compare two Strings
  • 10 WAP to compare two Strings lexicographically
  • 11 WAP to convert String to String Array
  • 12 WAP to convert Enum to String

Medium Level Programs

  • 13 WAP to find the maximum and minimum occurring character in a String
  • 14 WAP to print all duplicate characters in a String
  • 15 WAP to find the first non-repeating character in a given String
  • 16 WAP to remove all the duplicates from given string
  • 17 WAP to remove leading zeros from a String
  • 18 WAP to swap pairs of characters in a String
  • 19 WAP to split a String into a number of sub-strings
  • 20 WAP to check whether two Strings are Anagram

Hard Level Programs

  • 21 WAP to reverse a String using Stack
  • 22 WAP to sort a String
  • 23 WAP to convert a String to InputStream
  • 24 WAP to check whether the given String is Pangram
  • 25 WAP to print the first letter of each word in a String using Regex
  • 26 WAP to determine the Unicode code point at a given index in a String