Skip to content

Instantly share code, notes, and snippets.

View abdullah-alialdin's full-sized avatar
🏠
Working from home

Abdullah Alialdin abdullah-alialdin

🏠
Working from home
View GitHub Profile
@abdullah-alialdin
abdullah-alialdin / java-repeat-string.md
Created August 14, 2018 15:51 — forked from umidjons/java-repeat-string.md
Repeat string N times without loop in Java

Repeat string N times without loop in Java

package javaapplication1;
public class JavaApplication1 {
    /**
     * Repeat string <b>str</b> <b>times</b> time.
     * @param str string to repeat
     * @param times repeat str times time
     * @return generated string
 */