title: Remove first character of string in O(1)
body: <p>How can I represent a string of characters in java so that removing the first character of string takes O(1) time?</p>
  
  <p>This question: <a href="https://stackoverflow.com/questions/4503656/in-java-removing-first-character-of-a-string">on string character removing</a> talks about using substring to remove first character of string in Java. But as found here <a href="https://stackoverflow.com/a/4679775/5304035">on Java 7 changes</a> the substring implementation runs in O(length of string) now. How can I remove first character in O(1) using Java?</p>
  
  <p><strong>I just want an alternative if possible using any other similar classes like StringBuffer, StringBuilder etc. that deal with strings and chars. Or any other way, surely there must be a way to remove the first character of a word in O(1).</strong></p>