Core Java Assignment 4

Assignment on Strings:
String s =”This is a java class”

  1. How many words in a String?
  2. Length of the String?
  3. How many single character words in the String?
  4. Reverse each word ?
  5. Reverse entire String
  6. Replace java with SQL
  7. Letter at the center
  8. Index of j at center
  9. Number of times each letter repeated.
  10. Identify a letter which is not repeated.
  11. Identify the index of each word
  12. Identify the index of each word
  13. Convert the entire String in to upper case ?