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

 

sspiege3@schools.nyc.gov u3 > oddOrEvenString
prev  |  next  |  chance

Determine if a word has an odd or even amount of characters.


oddOrEvenString("cat") → "cat has an odd amount of chars."
oddOrEvenString("book") → "book has an even amount of chars."
oddOrEvenString("1") → "1 has an odd amount of chars."

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

public String oddOrEvenString(String word){ }

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: 102 Post-solution available

Copyright Nick Parlante 2017 - privacy