Write a definition of a method called fifth that returns fifth character in a given string, and that throws StringIndexOutOfBoundsException if there is no fifth character. (The fifth character of "abcdefg" is 'e'.)

 

    [Language: Java  Kind: function definition]