Question: need help with written question, ty Question 3 ( 8 marks) You are given an array of words usually found in spam messages: private static

 need help with written question, ty Question 3 ( 8 marks)

need help with written question, ty

Question 3 ( 8 marks) You are given an array of words usually found in spam messages: private static final String [ ] spamWords ={ "LV", "disclaimer", "urgent", "necessary", "free", "4u", "Guarantee", "profits", "congratulations", "opportunity", "unlimited", "scam", "casino", "profits", "amazing", "mailto", "Credit", "unsecured", "winner", "winning", "hormone", "insurance", "spam", "ringtones", "account", "blackjack", "luck", "chatroom", "Duty-free", "HD"\}; Develop a GUI (javax or javafx) to scan a text entered by a user to the text area. When the scan message button is pressed, the number of spam words found in the text and the spam likelihood (the number of spam words / spamWords.length, the above array) in \% will be displayed in the two text fields labelled as "Score" and "Spam likelihood" in the following GUI and a summary of distinct spam words found in the text area is displayed in another panel. Explore Lambda expression to trigger an event. For testing purpose, you can copy and paste the array of spam words to your program. The name of the program is YourName_Exam_3.java and upload the Java program

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!