What we did:
We take a String as a parameter.
Spaces are delimiters and we need to find the length of the last word.
We use a scanner to go through the string and then when at the last word return its length.
Problem:
https://leetcode.com/problems/length-...
More Java Practice Problems:
• Java Assignments, Exercises, and Problems ...