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

 

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

Write a method that returns the greatest digit from 'num'. For example, if 'num' is 7612841 you would return 8 since that is the greatest of all the digits in 'num'. As a precondition you may assume that 'num' is positive. Look at the test data for examples.


test2021_12_15_APSLHL_biggestDigit(11232112) → 3
test2021_12_15_APSLHL_biggestDigit(12351) → 5
test2021_12_15_APSLHL_biggestDigit(543221) → 5

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

public int test2021_12_15_APSLHL_biggestDigit(int num) { }

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

Copyright Nick Parlante 2017 - privacy