Aa

Text size

?

Map / Methods / Check 2

⌨️ Write

Check: repeat, two ways

Write two methods named repeat — one takes a String and a count, the other a char and a count — each returning the text repeated that many times. A count of 0 gives "".

  • overloading
  • for
  • return