title: How to splice a string in java
body: <p>So if I have a string such that</p>
  
  <pre><code>String name = "Daniel";
  int age = 18;
  </code></pre>
  
  <p>If I want to create a string username using for example the first 3 letters of the name + the age, how can I manipulate the name to get the first 3 letters?</p>
  
  <p>I understand that you can do the string.split() but I don't understand how this is applicable to this scenario. </p>
  
  <p>I'm sorry if this is a stupid question but as you can probably tell I'm still a noob. Thanks in advance</p>