Question: Java Class- the code compiles and works, but I need to clear these errors as per assignment guidelines for coding convention, I will bold the
Java Class- the code compiles and works, but I need to clear these errors as per assignment guidelines for coding convention, I will bold the part that gives these errors...
code:

public class WordGuess { public static String makeUserWord(String theWord) { String userWord = ""; for (int counter = 0; counter public static String updateGuesses(String guesses, char guess) { if (guesses.length() == 0) { guesses = guesses + guess; } else if (!isInWord(guess, guesses)) { for (int pos = 0; (pos } } } return guesses; } public static String displayUserWord(String userWord) { String result = ""; for (int ii = 0; ii E: Flu Bs statistics (Entered Summer 2018COP 221e- Fall 2018\PA4>Java -jar checkstyle-7.0-all.jar -c cs149.xml WordGu ss.java Starting audit... [ERROR] E: FIU BS Statistics (Entered Summer 2018COP 221e- Fa11 2018\PA4WordGuess. Java: 76: 21: Assignment of paramete "guesses' is not allowed. [ParameterAssignment] [ERROR] E: Flu BS Statistics (Entered Summer 2018COP 221e- Fall 2018\PA4\WordGuess. Java: 82:29: Assignment of paramete guesses' is not allowed. [ParameterAssignment] [ERROR] E: FIU BS statistics (Entered Summer 2018COP 221e- Fa11 2018\PA4WordGuess. Java: 84:29: Assignment of paramete guesses' is not allowed. [ParameterAssignment] [ERROR] E: \FIU BS statistics (Entered Summer 2018COP 2210- Fall 2018\PA4WordGuess. Java: 86:29: Assignment of paramete "guesses' is not allowed. [ParameterAssignment] Audit done. Checkstyle ends with 4 errors. E: \FIU BS Statistics (Entered Summer 2018)\COP 2210- Fall 2018 PA4>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
