Metoda powtórzenia Java

class GFG {
    public static void main (String[] args) {
      String string = "abc";
      int count = 3;
      System.out.println("String :" + string.repeat(count));
    }
}
Pleasant Porcupine