20 lines
436 B
Java
20 lines
436 B
Java
package test1503_gmail_com;
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class NewsFeed {
|
|
public NewsFeed() {}
|
|
|
|
public static String[] getTopics() {
|
|
String[] topics = {"Opinion", "Tech", "Science", "Health"};
|
|
return topics;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
NewsFeed samplefeed = new NewsFeed();
|
|
String[] topics = samplefeed.getTopics();
|
|
|
|
String topicArray = Arrays.toString(topics);
|
|
System.out.print(topicArray);
|
|
}
|
|
} |