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

 

abraskin@mbusd.org 2016_student_creations_01 > vowelHalf
prev  |  next  |  chance

Determine if a given lowercase String contains a's. If more a's are present in the first half of the String, return "First Half". if the second half contains more a's, return "Second Half". If the number of a's in both halves is even, return "Same";


vowelHalf("baab") → "Same"
vowelHalf("aaabbb") → "First Half"
vowelHalf("ababab") → "First Half"

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

public String vowelHalf(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: 169

Copyright Nick Parlante 2017 - privacy