Question: Given the text file Alamo defenders.txt (attached to this assignment), write a simple Java program to do the following: - count how many names are

Given the text file Alamo defenders.txt (attached to this assignment), write a simple Java program to do the following:

- count how many names are in the file

- find the longest full name in the file

- find the longest single name (first, middle or last) in the file

- find whether there were any Alamo defenders named Jones

- write out, to the screen (console), all of the above information

Alamo defenders.txt file:

Juan Abamillo James L. Allen Robert Allen Horace Alsbury George Andrews Miles DeForest Andross Simon Arreola Micajah Autry Jesse B. Badgett Juan A. Badillo Peter James Bailey III Isaac G. Baker William Charles M. Baker John Ballard John J. Ballentine Richard W. Ballentine Andrew Barcena John J. Baugh Samuel G. Bastain Joseph Bayliss John Walker Baylor Jr. Anselmo Bergara John Blair Samuel Blair William Blazeby James Bonham Daniel Bourne James Bowie J. B. Bowman Robert Brown James Buchanan Samuel E. Burns George D. Butler John Cain Robert Campbell William R. Carey Cesario Carmona M.B. Clark Daniel W. Cloud Robert E. Cochran George Washington Cottle Henry Courtman Lemuel Crawford David Crockett Robert Crossman Antonio Cruz y Arocha David P. Cummings Robert Cunningham Matias Curvier Jacob C. Darst John Davis Freeman H.K. Day Squire Daymon William Dearduff Alexandro De la Garza N. Debichi Stephen Dennison Francis L. DeSauque John Desauque Charles Despallier Lewis Dewall Almaron Dickinson James Dickson John Henry Dillard Philip Dimmitt James R. Dimpkins Andrew Duvalt Samuel M. Edwards Conrad Eigenauer J.D. Elliott Frederick E. Elm Lucio Enriques Carlos Espalier Robert Evans Samuel B. Evans James L. Ewing William Keener Fauntleroy William Fishbaugh John Flanders Manuel N. Flores Salvador Flores Dolphin Ward Floyd John Hubbard Forsyth Antonio Fuentes Galba Fuqua William Garnett James W. Garrand James Girard Garrett John E. Garvin John E. Gaston James George William George James Gibson John C. Goodrich Francis H. Gray W.T. Green Albert Calvin Grimes Ignacio Gurrea Brigido Guerrero James C. Gwin John Harris Andrew Jackson Harrison I.L.K. Harrison William B. Harrison Joseph M. Hawkins John M. Hays Charles M. Heiskell Patrick Henry Herndon Pedro Herrera William Daniel Hersee Benjamin Franklin Highsmith Tapley Holland James Holloway Samuel Holloway William D. Howell William Hunter Thomas P. Hutchinson William A. Irwin Thomas R. Jackson William Daniel Jackson Green B. Jameson Gordon C. Jennings Damacio Jiminez John Johnson Lewis Johnson William Johnson William P. Johnson Gregorio Esparza Jos Maria Arocha Jos John Jones James Kenny Andrew Kent Joseph Kent Joseph Kerr George C. Kimble John C. Kin William Philip King William Irvine Lewis William J. Lightfoot Jonathan Lindley William Linn Byrd Lockhart Toribio Losoya George Washington Main William T. Malone William Marshall Albert Martin Samuel Augustus Maverick Edward McCafferty Ross McClelland Daniel McCoy Jr. Jesse McCoy Prospect McCoy William McDowell James McGee John McGregor Robert McKinney S.W. McNeilly Eliel Melton Antonio Menchaca Thomas R. Miller William Mills Isaac Millsaps Edward F. Mitchasson Edwin T. Mitchell Napoleon B. Mitchell Robert B. Moore Willis A. Moore John Morman William Morrison Robert Musselman James Nash Andr Nava Gerald Navan George Neggan Andrew M. Nelson Edward Nelson George Nelson Benjamin F. Nobles James Northcross James Nowlan L.R. O'Neil George Olamio William Sanders Oury Jose Sebastian Luciano Pacheco George Pagan Christopher Adams Parker William Parks William Patton Richardson Perry Adolf Petrasweiz Amos Pollard Eduardo Ramirez John Purdy Reynolds Thomas H. Roberts James Waters Robertson Ambrosio Rodriguez Guadalupe Rodriquez James M. Rose Jacob Roth Jackson J. Rusk Joseph Rutherford Isaac Ryan W.H. Sanders Mial Scurlock Juan Seguin Marcus L. Sewell Manson Shied Silvero Cleveland Kinloch Simmons Andrew H. Smith Charles S. Smith John William Smith Joshua G. Smith William H. Smith Launcelot Smither Andrew Jackson Sowell John Spratt Richard Starr James E. Stewart Richard L. Stockton A. Spain Summerlin William E. Summers John Sutherland William DePriest Sutherland Edward Taylor George Taylor James Taylor William Taylor B. Archer M. Thomas Henry Thomas Thompson John W. Thomson John M. Thurston Burke Trammel Joe Travis William B. Travis George W. Tumlinson James Tylee Asa Walker Jacob Walker William B. Ward Henry Warnell Joseph G. Washington Thomas Waters William Wells Isaac White Robert White Hiram James Williamson William Wills David L. Wilson John Wilson Anthony Wolf Claiborne Wright Charles Zanco Vicente Zepeda

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!