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

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

1 Expert Approved Answer
Step: 1 Unlock

Heres a Java static method named getHiddenString that follows the speci... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!