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

 

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

Write a method that "pluralizes" the input parameter string. The reason "pluralizes" is in quotes is because this method just needs to add an "s" on to the end of the string no matter what. The resulting "pluralized" string might not be grammatically correct. That is OK. For example, "fishs" is not the correct pluralization of fish. That is OK though. Your method just adds an "s" no matter what! Look at the test data for examples. Remember, you must only use ONE return statement per method.


practiceQuiz2021_08_30_APSLHL_pluralize("bird") → "birds"
practiceQuiz2021_08_30_APSLHL_pluralize("fish") → "fishs"
practiceQuiz2021_08_30_APSLHL_pluralize("queue") → "queues"

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

public String practiceQuiz2021_08_30_APSLHL_pluralize(String str) { }

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: 230

Copyright Nick Parlante 2017 - privacy