add multiple rows in sql using java
<p>I know the simple method of adding one row into sql database using netbeans.</p>

<p>Here is that method:</p>

<pre><code>Class.forName("com.mysql.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/zeeshan",
                                              "root","sHaNi97426");
Statement stmt = (Statement)conn.createStatement();
String insert = "INSERT INTO clients VALUES('"+hostname+"');";
stmt.executeUpdate(insert);
</code></pre>

<p>Now, I want to add multiple rows in sql database. For example, in the code given below:</p>

<pre><code>Process p = Runtime.getRuntime().exec("tasklist.exe");
BufferedReader s = new BufferedReader(new InputStreamReader(p.getInputStream()));

while ((s.readLine()) != null) {
    System.out.print(s.readLine()); 
}
</code></pre>

<p>I want to add each line in sql till <code>s.readLine()</code> becomes <code>null</code>.</p>

<p>Kindly help me.</p>