8. Write a public static method named isProdOfAllNegativelnts Negative that takes in 1 int argument and returns true if the product of all the values between -1 and that number is negative, and false otherwise. 9. Write a public static method named getCharAtIndex that takes in 2 arguments, a Strings, and an int index. The method should return the char found at the index location of the string or if not found return a '?' 10. Write a public static method named getCountOfCharlnString that takes in 2 arguments, a String s, and a char c. The method should return an int representing the number of times the char was found within the string. 11. Write a public static method named getString Reversed that takes in 1 argument of type String and returns the String in reverse order. 12. Write a public static method named getString Title Cased that takes in 1 argument of type String and capitalizes the first letter of each word in the String, then returns the title cased string. Special cases (error checking): • If the string is null, the method should return a blank string, "". • If the string is the blank string, "", the method should return the blank string. • If the length of the string is 0, the method should return a blank string. Example: Input: "the dog ate my homework!" Input: "tHe Dog atE My HOMEWORK!" Input: "THE DOG ATE MY HOMEWORK!" Returns: "The Dog Ate My Homework!" Returns: "The Dog Ate My Homework!" Returns: "The Dog Ate My Homework!"
8. Write a public static method named isProdOfAllNegativelnts Negative that takes in 1 int argument and returns true if the product of all the values between -1 and that number is negative, and false otherwise. 9. Write a public static method named getCharAtIndex that takes in 2 arguments, a Strings, and an int index. The method should return the char found at the index location of the string or if not found return a '?' 10. Write a public static method named getCountOfCharlnString that takes in 2 arguments, a String s, and a char c. The method should return an int representing the number of times the char was found within the string. 11. Write a public static method named getString Reversed that takes in 1 argument of type String and returns the String in reverse order. 12. Write a public static method named getString Title Cased that takes in 1 argument of type String and capitalizes the first letter of each word in the String, then returns the title cased string. Special cases (error checking): • If the string is null, the method should return a blank string, "". • If the string is the blank string, "", the method should return the blank string. • If the length of the string is 0, the method should return a blank string. Example: Input: "the dog ate my homework!" Input: "tHe Dog atE My HOMEWORK!" Input: "THE DOG ATE MY HOMEWORK!" Returns: "The Dog Ate My Homework!" Returns: "The Dog Ate My Homework!" Returns: "The Dog Ate My Homework!"
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...
Related questions
Question
Need help with 11 and 12 if possible.
Java Code.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Recommended textbooks for you
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY