/*
  James Little
  Sat 17 March, Exercise 4, COSC 241
  Program reads a stream of texts and counts the 
  frequency of the words contained.
*/

package jlittle_ex4;

public class Word {
    
    private String word;
    private int count=1;

    public Word(String word){
	this.word=word;
    }// end Word constructor

    public String getWord(){
	return word;
    }// end getWord

    public void addOne(){
	count++;
    }// end addOne

    public void writeWord(){
	System.out.println(word +"\t\t"+count);
    }// end writeWord

}// end Word class
