Skip to content
Snippets Groups Projects
Commit 5a594cd9 authored by Yerdana Jengiskhan's avatar Yerdana Jengiskhan
Browse files

Upload New File

parent 60e80d7b
No related branches found
No related tags found
No related merge requests found
// 🛠️ GuessUtilities.java - Keeping our word validation on point!
// Author: Yerdana Jengiskhan
// Course: CPSC219W
// Reference: Regular Expressions in Java
import java.util.regex.Pattern;
public class GuessUtilities {
public static boolean isValidWord(String word) {
return word.length() == 5 && Pattern.matches("[a-zA-Z]+", word);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment