How to print out specific letters within a String in Java
<p>I have been set a task to print out the 2nd, 3rd and 4th letter of a name within a String variable.</p>

<p>So for example the name is John and I want to print out the letters 'o, h and n only'</p>

<p>I was wondering if there is a specific method which I can use to carry out this task, if not what is the best approach to take?</p>