public class Translator extends Object
| Constructor and Description |
|---|
Translator(String sentence)
Initializes this translator with the given sentence.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTranslation()
Returns the translation of the sentence of this translator.
|
public Translator(String sentence)
sentence - a sentence.public String getTranslation()