Project: Alphabetic Only Filter
Write a filter program that only allows alphabetic characters to pass through. Any non-alphabetic characters should be removed from the output stream.
Output
$ javac -Xlint AlphabeticOnlyFilter.java
$ java -ea AlphabeticOnlyFilter < ../../data/text/GettysburgAddress.txt
LincolnsGettysburgAddressgivenNovemberonthebattlefieldnearGettysburgPennsylvaniaUSAFourscoreandsevenyearsagoourfathersbroughtforthonthiscontinentanewnationconceivedinLibertyanddedicatedtothepropositionthatallmenarecreatedequalNowweareengagedinagreatcivilwartestingwhetherthatnationoranynationsoconceivedandsodedicatedcanlongendureWearemetonagreatbattlefieldofthatwarWehavecometodedicateaportionofthatfieldasafinalrestingplaceforthosewhoheregavetheirlivesthatthatnationmightliveItisaltogetherfittingandproperthatweshoulddothisButinalargersensewecannotdedicatewecannotconsecratewecannothallowthisgroundThebravemenlivinganddeadwhostruggledherehaveconsecrateditfaraboveourpoorpowertoaddordetractTheworldwilllittlenotenorlongrememberwhatwesayherebutitcanneverforgetwhattheydidhereItisforusthelivingrathertobededicatedheretotheunfinishedworkwhichtheywhofoughtherehavethusfarsonoblyadvancedItisratherforustobeherededicatedtothegreattaskremainingbeforeusthatfromthesehonoreddeadwetakeincreaseddevotiontothatcauseforwhichtheygavethelastfullmeasureofdevotionthatweherehighlyresolvethatthesedeadshallnothavediedinvainthatthisnationunderGodshallhaveanewbirthoffreedomandthatgovernmentofthepeoplebythepeopleforthepeopleshallnotperishfromtheearth$ javac -Xlint AlphabeticOnlyFilter.java
$ java -ea AlphabeticOnlyFilter < ../../data/text/UnicodeTest.utf8
FourscoreandsevenyearsagoourfathersbroughtforthonthiscontinentanewnationconceivedinLibertyanddedicatedtothepropositionthatallmenarecreatedequalVorvierPunktenundsiebenJahrenhabenunsereVäteraufdiesemKontinenteineneueNationhervorgebrachtdieinFreiheitempfangenwurdeundsichdemVorschlagverschriebenhatdassalleMenschengleichgeschaffensindΤέσσερασκορκαιπριναπόεπτάχρόνιαοιπατέρεςμαςέφερανσεαυτήτηνήπειροένανέοέθνοςπουσχεδιάστηκεστηνΕλευθερίακαιαφιερώθηκεστηνπρότασηότιόλοιοιάνθρωποιδημιουργούνταιίσοιأربعنقاطوقبلسبعسنواتقدمآباؤنافيهذهالقارةأمةجديدةتمتصورهافيالحريةومكرسةلفرضيةأنجميعالرجالخلقوامتساوينארבעציוניםולפנישבעשניםאבותינוהציגוביבשתזואומהחדשהשהגתהבחירותוהוקדשהלטענהשכלהגבריםנוצריםשוויםスコアと年前私たちの父親はこの大陸で生まれた新しい国でありリバティで考案されすべての人が平等に創造されるという命題に献身しました점년전우리조상들은리버티에서잉태된새로운국가인이대륙에서모든사람들이평등하게창조되었다고제안했습니다四年前七年前我们的祖先在这个大陆上建立了一个新国家这个国家是在自由中孕育的致力于实现人人平等的主张UnicodeEmojiSmilingFacewithHeartsHotFaceColdFaceWoozyFacePartyingFaceUnicodeEmojiZanyFaceExplodingHeadFacewithMonocleFacewithSymbolsonMouthTRexUnicodeEmojiRollingontheFloorLaughingNauseatedFaceClownFaceFoxSharkUnicodeEmojiMoneyMouthFaceNerdFaceLionUnicornCrabUnicodeEmojiVulcanSaluteChipmunkSpiderHotPepperTornadoPrecomposedvsDecomposedÅAàaéeîiñnüu한한GraphemesthattaketwocodepointsCanadaChinaFranceGreeceIsraelJapanMexicoUKUS