Page 1 of 1

In this project you will be creating several methods to do a variety of things. Be careful to implement exactly what the

Posted: Mon May 09, 2022 7:01 am
by answerhappygod
In This Project You Will Be Creating Several Methods To Do A Variety Of Things Be Careful To Implement Exactly What The 1
In This Project You Will Be Creating Several Methods To Do A Variety Of Things Be Careful To Implement Exactly What The 1 (84.8 KiB) Viewed 33 times
In This Project You Will Be Creating Several Methods To Do A Variety Of Things Be Careful To Implement Exactly What The 2
In This Project You Will Be Creating Several Methods To Do A Variety Of Things Be Careful To Implement Exactly What The 2 (42.6 KiB) Viewed 33 times
In this project you will be creating several methods to do a variety of things. Be careful to implement exactly what the method is asking for. Be sure to follow these rules (or lose points): 1. You must implement all of these methods in a single class called Project3 2. You must name your methods exactly as they are written below. Do not change the method name or modify the capitalization 3. Do not add, remove, or reorder parameters or change the types. (Match examples given) 4. Do not change the retum type. a Note: Returning is not the same as printing. The method should only print something if the instructions say so. Otherwise, the method should return the result and should not print anything. (You can and should print as you code and debug, but remove print statements that should not be there prior to submission.) 5. Each method may hate at most one return statement (or none if it is void and does not return anything). You will lose points if you have a method with multiple return statements. 6. For the methods that work with Strings, you are only allowed to use charat, substring, indexOf, length, equals and or compare To. If you want to use any other built-in method, you must ask me first (and I may say no--some methods may exist that make the task trivial. You will not be allowed to use these). To be clear, you are not allowed to use any replace or replaceAll String methods. 7. Do not duplicate code in this project. Make use of methods that you write if they can be used elsewhere in the project. If you have any questions about what the method is asking for, just ask.
(dis allowed) 4. (3 pts) Overload the acronymExpander method to take a grven text and two (parallel) arrays of Strings where the first array has acronyms the user wants expanded in the gren text and the second array has the associated expansions for the acronyms. For example: String myText = "lol did you see this episode? Lol imo it was hilarious when Andy surprised April lol!"; String[] aczonyos = {"101", "imo"}; String() exps = {"laugh out loud", "in my opinion"); ] acronymēxpander (myText, acronyms, exps) Returns: "laugh out loud did you see this episode? Lol in my opinion it was hilarious when Andy surprised April laugh out loud!" Note the rules outlined at the start of this project: Do not duplicate code in this project. (Spoiler Hint use (call) your method from task 3 in this task) ale