Task 9 of 15 · 0 solved · 15 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

1.5 Strings — first and last

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Store the word Java and print, each on its own line: its first character, its last character, and its length.

J
a
4

Find the last character from the length — the code must work for any word, not just this one.

Your solution