title: java : properties file escape sequence for square bracket
body: <p>Need to escape the [ at the starting of a value.</p>
  
  <p>I am using PropertyResourceBundle to read the properties file and i have a property whose value is starting with a square bracket like</p>
  
  <pre><code>myapp.add.user.email.selfRegistration.subject=[MYAPP] Welcome to MYAPP
  </code></pre>
  
  <p>when i try to read this file i get following exception</p>
  
  <pre><code>java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to
  java.lang.String    at
  java.util.ResourceBundle.getString(ResourceBundle.java:355)
  </code></pre>
  
  <p>i am using jdk7</p>