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

 

tmhscs@gmail.com fundamentals > logic_biggerStringAB
prev  |  next  |  chance

logic_biggerStringAB-write a method that returns a String of "A is the largest" when a is bigger than b, and a String saying "B is the largest" when b is larger than a.


logic_biggerStringAB(2, 1) → "A is the largest"
logic_biggerStringAB(3, 4) → "B is the largest"
logic_biggerStringAB(6, 5) → "A is the largest"

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

public String logic_biggerStringAB(int a, int b){ }

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