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

 

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

Write a method that returns 'true' if any of the input parameters matches any of the other input parameters. Return 'false' otherwise (so return 'false' if there are no matches). For example, for the input parameters 6, 12, 40 the method would return 'false' because none of these matches any of the others. However, 18, 2, 18 would return 'true' because the two 18's match. The method must also return 'true' if all of the input parameters match such as 5, 5, 5. Look at the test data for further examples.


sep9_2016_APSLHL_anyDuplicates(-3, -3, 12) → true
sep9_2016_APSLHL_anyDuplicates(27, 27, 27) → true
sep9_2016_APSLHL_anyDuplicates(27, 4, 27) → true

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

public boolean sep9_2016_APSLHL_anyDuplicates(int a, int b, int c) { }

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