Question: Java question adjust my current code or completely re write it will rate thank you Copyright 2019. All rights reserved. Unauthorized reproduction, distribution, or transmission

Java question adjust my current code or completely re write it willrate thank you Copyright 2019. All rights reserved. Unauthorized reproduction, distribution, orJava question adjust my current code or completely re write it will rate thank you

Copyright 2019. All rights reserved. Unauthorized reproduction, distribution, or transmission of this document is prohibited. 7. [12 pts] Methods [8 pts ] Part1 - Write a method that overloads the sayHi method below to take in a single int variable parameter called count. The method you write should print out "Hi X!" the number of times passed in via the count parameter, where X is your name For example, for me, sayHi (2) would print: "Hi Suzy!" "Hi Suzy!" Do not duplicate the code provided! Reuse code whenever possible! [4 pts] Part 2 - Draw a box around the method signature for each method public class Method public static Stringt] args) t sayH ( "Hello", "Suzy", 2); // prints " Suzy." 2 times sayHi (5); // prints "Hi !" 5 times enum publiC String prefix,-String name , int count) { for (inti-count System.out n (prefix + int loun for Do not write below this line. It may not be scanned, therefore it will not be graded 7C 71 Part 1 4/8 pts V-2 pts Doesn't call overloaded sayHi -2 pts Incorrect parameters when calling sayHi

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!