← Unit 1 · all exercises
Saved in this browser only

How long is it

Return how many characters are in the word. Spaces count.

int howLong(String word)

Solution.java
Loading editor…
Results

Examples

  • howLong(Java) → 4
  • howLong(hi) → 2

There are also 3 hidden tests you can't see. Solve the problem, not the examples.