how to Fix JAVA error NullPointerException(with jdbc)
Clash Royale CLAN TAG #URR8PPP how to Fix JAVA error NullPointerException(with jdbc) I do not speak English well An error occurred while doing JDBC. I knew during coding that ' executequery ' should only be done by ' select ' in the database, and ' insert ' should be ' executeupdate '. However, when I did executeupdate, I had a problem with the variable and changed it to " int " Then an error occurred. How can it be carried out as I intended? I'll show you the code. import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; public class EdgeCloud { static ArrayList<String> deleteDB = new ArrayList<>(); static ArrayList<String> DBCarIP = new ArrayList<>(); static ArrayList<String> Contain...