title: How to parse string containing negative number into integer?
body: <p>Part of my code is here!</p>
  
  <pre><code>bufferedReader=new BufferedReader (inputstreamreader);
  message=bufferedReader.readLine ();// ex: message has (1,-3)
  String[] msg=message.split (",") //I use comma (,) as deliminator
  int x=Integer.parseInt (msg [0]);
  int y=Integer.parseInt (msg [1]);
  </code></pre>
  
  <p>This clearly parses but the problem is it looses negative sign. That is the "message" contains (1,-3). Pls help me to parse without loosing -ve sign.</p>