title: Converting String to Int in Android, JSON
body: <p>Please give me an idea on how to compare values. I have a string budget_event, and budget and it is from my webserver. I think I should convert such strings into int and I need to compare those values with greater than and less than symbols. How can I implement these? Please give me some ideas. I'm new in these things.</p>
  
  <p>Here's my code snippet in android. I need to convert the Budget and budget_event to int because they are strings. Any help will do. Thanks! </p>
  
  <pre><code> Budget = jsonObject.getString("budget");
  totalcost.setText(Budget);
  budget_event = budget.getText().toString();
  </code></pre>