Write the method jazzUp which takes a String argument and an integer argument. The method returns a
Fantastic news! We've Found the answer you've been seeking!
Question:
Write the method jazzUp which takes a String argument and an integer argument. The method returns a String with exclamation points and one space on either side of the original String equal to the integer argument. If the integer is 0, the String is returned unchanges. The integer argument will never be negative.
ex
jazzUp("SCIENCE", 4) returns "!!!! SCIENCE !!!!"
jazzUp("YESSS", 2) returns "!! YESSS !!"
jazzUp("Nah",0) returns "Nah"
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: