Check out example codes for "c# repeat string x times". It will help you in understanding the concepts better.
Code Example 1
string result = new String('-', 5);
Output: -----
Code Example 2
public static String repeat(String s, int n) { StringBuilder sb = new StringBuilder(str.length() * n); for (int i = 0; i < n; i++) sb.append(s); return sb.toString();} public static void main(String[] args) { System.out.println(repeat("ha", 5));}
Learn ReactJs, React Native from akashmittal.com