title: How to get the index of second or nth occurencece of a char without array only string class in JAVA
body: <p>am trying to make a method in Java that give me the index of nth occurence of a char in a String.
  example 
  String Hello="allo every body how are you"
  How can I get the index of the 3rd 'Y'?
  thank you </p>