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

 

frew@mclean.com regex1 > quant2
prev  |  next  |  chance

Check if a string contains no more than 2 numbers in a row (anywhere in the string).


quant2("12345") → false
quant2("123ABC") → false
quant2("ABC123") → false

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

public boolean quant2(String s) { }

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: 310 Post-solution available

Copyright Nick Parlante 2017 - privacy