id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > test2023_11_02_APP1SLHL_stringLengths
prev  |  next  |  chance

Write a method that returns an array of all the string lengths in the input parameter array of strings, such that each index in the returned result indicates the length of the string at that same index in 'strs'. Look at the test data for examples.


test2023_11_02_APP1SLHL_stringLengths(["DeLand High School", "Bulldogs"]) → [18, 8]
test2023_11_02_APP1SLHL_stringLengths([]) → []
test2023_11_02_APP1SLHL_stringLengths(["testing", "this"]) → [7, 4]

...Save, Compile, Run (ctrl-enter)

public int[] test2023_11_02_APP1SLHL_stringLengths(String[] strs) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 210

Copyright Nick Parlante 2017 - privacy