程序包 Hangman
类 HangmanParsing
- java.lang.Object
-
- Hangman.HangmanParsing
-
public class HangmanParsing extends java.lang.Object
This class mainly takes in the arraylist of strings that have already deleted leading or trailing whitespaces and returns the "pure" ArrayList of words for users to guess.- 作者:
- Kevin Long
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.util.ArrayList<java.lang.String>
lines
-
构造器概要
构造器 构造器 说明 HangmanParsing(java.util.ArrayList<java.lang.String> lines)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.ArrayList<java.lang.String>
matchCleaning()
Iterate through all lines of words and delete leading or trailing whitespaces.
-
-
-
方法详细资料
-
matchCleaning
public java.util.ArrayList<java.lang.String> matchCleaning()
Iterate through all lines of words and delete leading or trailing whitespaces. Therefore the word list will be more efficiently filtered. Since the- 返回:
- pure word list that contains no uppercase, abbreviation, apostrophe, hyphen, compound and digits
-
-