I want to print a char '=' repeatedly where I give the no. of times the asterisk should be repeated.
Example: count = 20 and I want to print ==================== using printf() and format specifiers.
I want to print a char '=' repeatedly where I give the no. of times the asterisk should be repeated.
Example: count = 20 and I want to print ==================== using printf() and format specifiers.
String#repeatSimply append a string generated by String#repeat method, in Java 11+.
String result = "=".repeat( 20 ) ;
====================