public class Sentence extends Object
| Constructor and Description |
|---|
Sentence(String value) |
Sentence(String value,
int position)
construct method
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
int |
getPosition() |
String |
getValue() |
Sentence |
setLength(int length) |
Sentence |
setPosition(int position) |
Sentence |
setValue(String value) |
String |
toString()
rewrite the toString method
|
public Sentence(String value, int position)
value - position - public Sentence(String value)
Copyright © 2017. All Rights Reserved.