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

 

problem5


The method problem5 below will receive four integer parameters. You are to determine which integer is the largest. If 'a' is the largest, you will return "1" because the first one was the largest. If 'b' is the largest, return "2", etc. Note: There will never be a tie for the largest.


problem5(1, 2, 3, 4) → "4"
problem5(5, 7, 8, 2) → "3"
problem5(0, 0, 0, 1) → "4"

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

public String problem5(int a, int b, int c, int d){ }

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

Copyright Nick Parlante 2017 - privacy