All Packages Class Hierarchy This Package Previous Next Index
Class bradel.wordchanger.WordStorage
java.lang.Object
|
+----bradel.wordchanger.WordStorage
- public class WordStorage
- extends Object
Stores a set of words.
Creation date: (30/12/2001 2:17:10 PM)
- Author:
- : Borys Bradel
Copyright (c) 2001 Borys Bradel
All rights reserved
-
words
- aorted array of words
-
WordStorage()
- WordStorage constructor sets the array to null
-
WordStorage(String[])
- copies the array and sorts it
if the array is null, just set a null array
Creation date: (30/12/2001 2:17:52 PM)
-
holdsWord(String)
- checks if the word is in the word list
Creation date: (30/12/2001 2:18:17 PM)
-
toString()
- creates a string with the list of words
Creation date: (30/12/2001 9:45:56 PM)
words
private String words[]
- aorted array of words
WordStorage
public WordStorage()
- WordStorage constructor sets the array to null
WordStorage
public WordStorage(String words[])
- copies the array and sorts it
if the array is null, just set a null array
Creation date: (30/12/2001 2:17:52 PM)
- Parameters:
- words - java.lang.String[]
holdsWord
public boolean holdsWord(String word)
- checks if the word is in the word list
Creation date: (30/12/2001 2:18:17 PM)
- Parameters:
- word - java.lang.String
- Returns:
- boolean
toString
public String toString()
- creates a string with the list of words
Creation date: (30/12/2001 9:45:56 PM)
- Returns:
- java.lang.String
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index