public class KeyWord
extends java.lang.Object
Constructor | Description |
---|---|
KeyWord(java.lang.String label,
int frequency) |
Constructor for the KeyWord class.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getFrequency() |
Gets the
int instance representing the frequency. |
java.lang.String |
getLabel() |
Gets the
String instance representing the keyword. |
static void |
main(java.lang.String[] args) |
|
java.lang.String |
toString() |
Returns a string representation for the KeyWord class.
|
public KeyWord(java.lang.String label, int frequency)
label
- a descriptive wordfrequency
- the amount of times the word is usedpublic java.lang.String getLabel()
String
instance representing the keyword.public int getFrequency()
int
instance representing the frequency.public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)