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

 

digitIn1000sColumnIsBetween1and5


public boolean digitIn1000sColumnIsBetween1and5(int number)

Given an integer, return true if the 4th-to-last digit is in the range 1-5.
Otherwise return false;


digitIn1000sColumnIsBetween1and5(1392) → true
digitIn1000sColumnIsBetween1and5(2141) → true
digitIn1000sColumnIsBetween1and5(6153) → false

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

public boolean digitIn1000sColumnIsBetween1and5(int number) { }

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

Copyright Nick Parlante 2017 - privacy