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

 

abraskin@mbusd.org > isAbba
prev  |  next  |  chance

Return true only if a given String has the letters a and b in both the first and last two characters.


All of the Strings "abab", "abba","baab", and "baoba" would return true while none of the Strings "aabb", "bbba", "abbb", nor "ba baracus" would.

isAbba("abab") → true
isAbba("abba") → true
isAbba("baab") → true

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

public boolean isAbba(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: 150

Copyright Nick Parlante 2017 - privacy