Question: I have to crate a method that has parameters and write a method, called returnHours that returns a string. Make the string from a string
I have to crate a method that has parameters and write a method, calledreturnHoursthat returns a string. Make the string from a string representing my name (Andrew) and a number representing the hours I spend sleeping (7), both are values that you pass in from themain. I also need to create the variables to pass into the method call inmain.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
