Repeat a Character in java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1235179/simple-way-to-repeat-a-string-in-java">Simple way to repeat a String in java</a>  </p>
</blockquote>



<p>1) I would like to repeat this character "=" n times. 
I have look it up and a found the function repeat but is not working</p>

<p>First I need to ask for the name and date of birth then the Output should be like this:</p>

<p>=====================================</p>

<p>Name: Jake Thompson</p>

<p>Birth: 12/08/1987</p>

<p>=====================================</p>

<p>I did with:
System.out.println("================================");
but I wonder if is another simple way.</p>

<p>Another question I declare String=name and then:</p>

<p>System.out.print("Enter the name and last name:");</p>

<p>name=k.next();name=String</p>

<p>but when I tried to write Jake Thompson it doesn't work. </p>
