Store the word Java and print, each on its own line: its first character, its last character, and its length.
Java
J a 4
Find the last character from the length — the code must work for any word, not just this one.