Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 JAVA

AS 65%. 2:54 PM Assignment #3 CITI15 Pogramming IT Objective: Create a Java program to develop skills implementing Java syntax, including: Compile and run a simple program . Design a class definitions Creute class methods . Develop String manipulation techniques . Utilize methods in the String and Charucter clusses Overview In this assignment you will create a graphical Java application. Using this application user will be able to perfom sme analysis on text. The analysis will allow the user to check if the data entered is a palindrome and will also report several other statistics of thusage of the churacters that comprises the entered datu Helpful tiip There are several Java classes that you may find useful for this application. These classes are String. StringBuffer, StringBuilder and Character. The documentation for these classes can be tound in the Javu documentation on the Oracle site under the Java.lang package. (See h Steps: I. Create a new project and add a IFrame that you will use to design the graphical interface for the user a. Add a textArea thut the user will enter the text to be analyzed. b. Add one button to trigger thut analysis of the text. c. Add enough lubels to displuy the results from the methds described below 2. Create a private method named isPalindrome. It should take a String as an agument and renurn a hoolean result that indicates if the string is a palindrome (tnue is a pulindrome: fulse s NOT u palindrome Pleuse remove any non-ulphubetic und non digits churcters as well as all whitespace and ignore thcuse 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 renirns an array of int. This function needs to calculate the following statistics and return them in the tolloing order a number of ulphubetic churacters b. number of numerie digits c. numher of control characters (ACSTT characters from 0 to 31) d. numher of lower case charactens e. numher of upper case characters f. number of whitespuce characters

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions