about | help | code help+videos | done | prefs |
Write the method called “longestSizeWord”. This method receives a string and returns an integer for the length of the longest word. Given: I Love Java – this would return 4. We will assume the words are separated by just one space... No beginning space, but there will always be a space at the end. longestSizeWord("I Love Java ") → 4 longestSizeWord("Math Is For Champions ") → 9 longestSizeWord("What a good day ") → 4 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy