public class News extends Object
Constructor and Description |
---|
News()
Creates a new news item.
|
Modifier and Type | Method and Description |
---|---|
String |
getHeadline()
Get the value of headline.
|
String |
getURL()
Get the value of url.
|
void |
setHeadline(String headline)
Set the value of headline.
|
void |
setURL(String url)
Set the value of url.
|
public String getHeadline()
public void setHeadline(String headline)
headline
- Value to assign to headline.public String getURL()
public void setURL(String url)
url
- Value to assign to url.