NameFramer methods loop string draw Livello 13 Edit

Scrivi la classe NameFramer contenente il metodo:

pubic static String frameName(String name, char c, int width)

che ritorna una stringa contenente la stringa name incorniciata nel carattere c utilizzato con uno spessore width.

Ad esempio frameName("Piero",'*',2) ritorna la stringa:

*********
*********
**Piero**
*********
*********

mentre frameName("Andrea",'$',1) ritorna la stringa:

$$$$$$$$
$Andrea$
$$$$$$$$