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

 

norm.krumpe@muohio.edu methodslab1 > allTheSame
prev  |  next  |  chance

Return true if all three parameters have the same value. Note: This is a one-liner: even though it could be solved with if-else, it can also be solved with just a return statement.


allTheSame(3, 4, 5) → false
allTheSame(3, 3, 4) → false
allTheSame(3, 4, 3) → false

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

boolean allTheSame(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: 100

Copyright Nick Parlante 2017 - privacy