title: Parse Coefficient of an Linear equation
body: <p>In java i am trying to find the coefficients of a linear equation  to find  solution of linear equation in my calculator application  for example :</p>
  
  <pre><code>3x +2*(6x-3) = 2 -4x 
  </code></pre>
  
  <p>what i am dying to get is the coefficients of x and the constant  in the form   <code>ax+b =0</code> ,</p>
  
  <p>in this particular example </p>
  
  <pre><code>coefficient = 19
  constant = -8
  </code></pre>
  
  <p>Please suggest a generalized idea </p>