•
Contents
•
Up
•
Test
•
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'.)
Answer
Store
Compute
[
Language:
Java
Kind:
function definition]