Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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) 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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started