title: How do I check if Batch Execution of SQL queries was successful or not in Java Swing?
body: <p>To check a single query I use this</p>
  
  <pre><code>int a = statement.executeupdate();
  if(a&gt;0){
  JoptionPane. showmessagediaglog(null, "Success");
  else{
  JoptionPane. showmessagediaglog(null, "Failed");
  </code></pre>
  
  <p>How do i do this with batch execution like <code>int a = statement.executebatch();</code></p>
  
  <p>This doesn't work of course, so is there a way? </p>