Write the definition of a method named makeStarBucks that receives a non-negative integer n and returns a String consisting of n asterisks followed by n dollars signs.

Write the definition of a method named makeStarBucks that receives a non-negative integer n and returns a String  consisting of n asterisks followed by n dollars signs.

LANGUAGE: JAVA

CHALLENGE:

Write the definition of a method named makeStarBucks that receives a non-negative integer n and returns a String consisting of n asterisks followed by n dollars signs. So, if the method received 5 it would print:
*****$$$$$
and if received 3 it would print
***$$$
The method must not use a loop of any kind (for, while, do-while) to accomplish its job.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level