about | help | code help+videos | done | prefs |
Write a method that returns a string telling which kinds of fruit you have. The order matters. Also, if you have none of the listed fruits, you must return the string "You have: nothing". Look at the test data for examples. NOTE: There is only one space between each word in the resulting string. test2022_10_06_P1SLHL_fruits(false, false, false, false) → "You have: nothing." test2022_10_06_P1SLHL_fruits(false, true, false, true) → "You have: Oranges Bananas." test2022_10_06_P1SLHL_fruits(true, true, false, false) → "You have: Apples Oranges." ...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: 230
Copyright Nick Parlante 2017 - privacy