Question: how to insert data into database from excel sheet in java?
Answer: public class SimpleExcelReadExample { static Connection con1 = null; static Connection con3 = null; static PreparedStatement preparedstatement = null; static ResultSet resultset = null; int j = 0; public static void main(String[] args) { String fileName = "D:/Excel/Report. xls"; Cleartables.