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

 

siochi@cnu.edu > maxIs
prev  |  next  |  chance

write two methods, one that finds the max of two ints and the other that calls it and returns the String "max is " followed by the max of the two ints. See the cases below for examples


maxIs(1, 2) → "max is 2"
maxIs(-1, -2) → "max is -1"

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

public String maxIs(int num1, int num2) { }

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

Copyright Nick Parlante 2017 - privacy