Write a java classStringCheckto do the below given checks on accepted string or strings. Each function should be coded in separate methods of the class. Give appropriate instance variables to implement the method. The user should be able to enter the string through the main function in Main class. Use a constructor to initialize the String entered by the user. Use the Main class to test all the methods in StringCheckclass. The programs should have the below given checklist: 1)Define classStringCheck with required instance variables 2)The StringCheck class should have six methods to do the below functions: *Check if the user entered string is a simple sentence? (Starts with capital letter, Ends with period, space between words). *Check if the user entered string is a question? (Check if the string starts with a c apital letter ends with a question mark, space between words) *Check if the user entered string have numbers in it? *Check if string is a valid email *Check if the user entered strings (two separate strings) are same? A method to check if the user entered character is present in the user entered string. Add a second constructor to initialize string and character when object is created.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
problem statement:
Write a java classStringCheckto do the below given checks on accepted string or
strings. Each function should be coded in separate methods of the class. Give
appropriate instance variables to implement the method. The user should be
able to enter the string through the main function in Main class. Use a constructor
to initialize the String entered by the user. Use the Main class to test all the methods in
StringCheckclass.
The programs should have the below given checklist:
1)Define classStringCheck with required instance variables
2)The StringCheck class should have six methods to do the below functions:
*Check if the user entered string is a simple sentence? (Starts with capital letter, Ends with
period, space between words).
*Check if the user entered string is a question? (Check if the string starts with ac apital letter
ends with a question mark, space between words)
*Check if the user entered string have numbers in it?
*Check if string is a valid email
*Check if the user entered strings (two separate strings) are same?
A method to check if the user entered character is present in the user entered
string. Add a second constructor to initialize string and character when object
is created.
3)Comment all the parameters used using
@param and return value using @return before
each method, to explain the parameters passed and the return value.
4)Write a Main class with the main function to accept string/s from the user and test
the StringCheck class methods.
5)Give each test string you used for the test and the output
of the program
Transcribed Image Text:problem statement: Write a java classStringCheckto do the below given checks on accepted string or strings. Each function should be coded in separate methods of the class. Give appropriate instance variables to implement the method. The user should be able to enter the string through the main function in Main class. Use a constructor to initialize the String entered by the user. Use the Main class to test all the methods in StringCheckclass. The programs should have the below given checklist: 1)Define classStringCheck with required instance variables 2)The StringCheck class should have six methods to do the below functions: *Check if the user entered string is a simple sentence? (Starts with capital letter, Ends with period, space between words). *Check if the user entered string is a question? (Check if the string starts with ac apital letter ends with a question mark, space between words) *Check if the user entered string have numbers in it? *Check if string is a valid email *Check if the user entered strings (two separate strings) are same? A method to check if the user entered character is present in the user entered string. Add a second constructor to initialize string and character when object is created. 3)Comment all the parameters used using @param and return value using @return before each method, to explain the parameters passed and the return value. 4)Write a Main class with the main function to accept string/s from the user and test the StringCheck class methods. 5)Give each test string you used for the test and the output of the program
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY