title: How to assign a value in java?
body: <p>I want to build my own class similar to a String class that I can use like this,</p>
  
  <p>MyClass mc="testvalue";</p>
  
  <p>I am confused at how to do this, where would "testvalue" be assigned to?</p>
  
  <p>Thanks.</p>