Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java repeat method

class GFG {
    public static void main (String[] args) {
      String string = "abc";
      int count = 3;
      System.out.println("String :" + string.repeat(count));
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #java #repeat #method
ADD COMMENT
Topic
Name
5+4 =