repeatThreeTimes Complete the method repeatThreeTimes so that it returns a new String that repeats the parameter String
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
repeatThreeTimes Complete the method repeatThreeTimes so that it returns a new String that repeats the parameter String
repeatThreeTimes Complete the method repeatThreeTimes so that it returns a new String that repeats the parameter String 3 times. repeatThreeTimes("test") → "testtesttest" repeatThreeTimes("fish") — "fishfishfish" repeatThreeTimes("go") → "gogogo" Go ...Save, Compile, Run (ctrl-enter) public String repeatThreeTimes(String str) Go
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!