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

Variable Index

 o words
aorted array of words

Constructor Index

 o WordStorage()
WordStorage constructor sets the array to null
 o 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)

Method Index

 o holdsWord(String)
checks if the word is in the word list Creation date: (30/12/2001 2:18:17 PM)
 o toString()
creates a string with the list of words Creation date: (30/12/2001 9:45:56 PM)

Variables

 o words
 private String words[]
aorted array of words

Constructors

 o WordStorage
 public WordStorage()
WordStorage constructor sets the array to null

 o 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[]

Methods

 o 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
 o 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