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

 

sspiege3@schools.nyc.gov > didWin
prev  |  next  |  chance

For Hangman offline.
This method should return true if if the user has guessed the entire word. The parameter stores a true for each letter that user has guessed. In the actual game, there is no parameter but instead an instance variable with this information.


didWin([true, true, false]) → false
didWin([false, true, true, true]) → false
didWin([true, true, true, true, true]) → true

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

public boolean didWin(List <Boolean> correct){ }

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

Copyright Nick Parlante 2017 - privacy