Quantcast
Channel: How do I create a string with repeating characters?
Viewing all articles
Browse latest Browse all 6

How do I create a string with repeating characters?

$
0
0

Since '*' is already a string, an alternative I find sticking with the methods the type  offers somewhat  better to follow. So you could use:

"*".PadRight(25, "*")

of course you could also use PadLeft.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>