Home /
Expert Answers /
Computer Science /
given-a-string-word-return-the-fourth-character-of-word-as-a-char-fourthcharacterchar-34-parrotia-pa429
(Solved): Given a String, word, return the fourth character of word as a char.
fourthCharacterChar("parrotia ...
Given a String, word, return the fourth character of word as a char.
fourthCharacterChar("parrotia") ? "r"
fourthCharacterChar("rehabilitation") ? "a"
fourthCharacterChar("casuarinales") ? "u"
Given a String, word, return the fourth character of word as a char. fourthCharacterChar("parrotia") \( \rightarrow \) "r" fourthCharacterChar("rehabilitation") ? "a" fourthCharacterChar("casuarinales") ? "u" ...Save, Compile, Run (ctrl-enter) public char fourthCharacterChar(String word) \{ \}