In java, create a method named repeatChars() whihc takes aString str as a parameter and returns a new String will have thesame characters as str, but the first character of str is repeatedone time, the second character is repeated 2 times and so on tillthe last character of str.
Expert Answer
An answer will be send to you shortly. . . . .