Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedJava 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions