Question
Building on H11a ; 1. Delete the loop that prints out 10 words from the ArrayList.. 2. Get one random word from the ArrayList. 3.
Building on H11a ;
1. Delete the loop that prints out 10 words from the ArrayList..
2. Get one random word from the ArrayList.
3. Make a guess word consisting of underscores. It should be the same length as the word.
3. Ask your user to guess a character in the word. If it is there put the character in the correct spot in the guess word.
4. If it is not there, that is a strike against the user. (10 strikes and he loses).
5. If the user guesses the word, he wins.
import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Random; import java.util.Scanner; public class H11A {
public static void main(String[] args) { ArrayList
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started