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

 

srp4379@lausd.net quiz4 > isWeekend
prev  |  next  |  chance

isWeekend() takes as input one of the 7 days of the week - "Monday", "Tuesday", etc. - and returns true if it is a weekend day. The method ignores uppercase and lowercase differences, e.g. "SATURday" should return true;


isWeekend("Sunday") → true
isWeekend("saturDAY") → true
isWeekend("Sunda") → false

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

public boolean isWeekend(String str) { }

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

Copyright Nick Parlante 2017 - privacy