Question: Write a static method named getHiddenString. It should accept a String as an argument and returns a string of equal length, but with asterisks
Write a static method named getHiddenString. It should accept a String as an argument and returns a string of equal length, but with asterisks as the characters. If, for example, the argument is "Pecan Pie" the return value should be **********". If the parameter is null the return value should be null. If the parameter is an empty string. the return value should be an empty string. Your Answer:
Step by Step Solution
3.49 Rating (159 Votes )
There are 3 Steps involved in it
Heres a Java static method named getHiddenString that follows the speci... View full answer
Get step-by-step solutions from verified subject matter experts
