これが私のコードです
import java.sql.*;
import java.util.Scanner;
class AccountDeletionApplication
{
public static void main(String[] args) throws ClassNotFoundException,SQLException
{
Scanner s=new Scanner(System.in);
System.out.println("Enter the Acc no:");
int ano=s.nextInt();
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","scott","tiger");
Statement st=con.createStatement();
int n=st.executeUpdate("delete from ACCOUNT1 where ACCNO="+ano);
if(n==1)
System.out.println("account deleted succesfully");
else
System.out.println("account doesnt exist");
st.close();
con.close();
}
}