You are a journalist working for a newpaper company with a longhistory. Out of curiosity, you would

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper Order a Different Paper

You are a journalist working for a newpaper company with a longhistory. Out of curiosity, you would like to look up the mostrecent article that uses the archaic word thou. Articles are represented as Article Objects. public class Article { public string title;   public string fullText;   public int publicationYear;   public int publicationMonth;   public int publicationDate;   public string author; } Assume fullText contains English letters and usual properpunctuation. Assume the ArrayList corpus contains all articlesever published in your paper. public class Test { public static void main ( String [] args ) { ArrayList < Article > corpus ; // somehow load corpus … // start writing code here … } } Write code that looks through corpus and finds the most recentArticle with the word thou in its text or title. Output the searchresult in any reasonable manner using System.out. If two or more Article s are the most recent, then you canoutput any one of them. In other words, you can output any one ofthe winners. If no article contains the word thou, say so. You may not use the methods indexOf(…) or lastIndexOf(…) ofclass String . Hint: Make sure your code does not think words like thousand orlighthouse are matches for thou . . . .