Question: : 1. Create a new project and add a JFrame that you will use to design the graphical interface for the user. a. Add a

 : 1. Create a new project and add a JFrame that
:
1. Create a new project and add a JFrame that you will use to design the graphical
interface for the user.
a. Add a textArea that the user will enter the text to be analyzed.
b. Add one button to trigger that analysis of the text.
c. Add enough labels to display the results from the methods described below.
2. Create a private method named isPalindrome. It should take a String as an argument
and return a boolean result that indicates if the string is a palindrome (true is a
palindrome; false is NOT a palindrome). Please remove any non-alphabetic and non-
digits characters as well as all whitespace and ignore the case of the characters when
determining if the string is indeed a palindrome.
3. Create a private method stringStats. It should take a String as an argument and then
returns an array of int. This function needs to calculate the following statistics and
return them in the following order:
a. number of alphabetic characters
b. number of numeric digits
c. number of control characters (ACSII characters from 0 to 31)
d. number of lower case characters
e. number of upper case characters
f. number of whitespace characters
4. Add an event to the button and call both of the above methods passing the text of the
textArea. Using the result of the isPalindrome method display the results on the form in
a clear manner. Using the returned array that is sent back from the stringStats method
display the statistics of the characters used in the textArea.
5. Test your application thoroughly to be sure it is working accurately. It may be difficult
to enter control characters but you should find that the program will find some without
much effort

Obyertive - Copegile asd nab a minide propezam - Drujen a rias dellnations - Cruaic clus methode - Develop Siriag munipulution lechniyses - Vtiliae medleab in the Serine and Clankte clans O*erimer thamens that cenipriss the enesed deta. Mrephel tipe These are several leva deses dot yos mey fied mefl fie Ans arelsutsen. These Serpe: invrime fer tal ines. a. Mdd a taskirs that ite ener will enter ihe ied le be ansbynal. 5. Mde une hurine be mieser that analyis of the iast 2. Create a peinase mathod named hFaliadreme. is abveld alie a Steiag a an appunser devenening if twe drieg is adend a palindnime. whers then is the fellowing oedir: 1. namber of aphubectec characiert b. murtare of auneric dipts d. namber of lires eise chander c. namber of apper case churactern f. Eardec ef whatcopere thandien Assignment \#3 CIrits6 - higranaing It 5. Test year applicalia thineptly is be une in is aumbing accuratch it may the diffenit is enker conted ctaracker but yos shole find that the poogran wil find mene witest mbect ellser

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!