Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • java problem

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 555
    Answer it

     

    what is the problem here?please help me

    package help;
    import java.util.Date;
    import java.sql.*;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class Help {
    
        public static void main(String[] args) throws SQLException {
         Date date=new Date();
         String w=String.valueOf(date);
        System.out.println(w);
            try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection con=DriverManager.getConnection("jdbc:odbc:date","user","123");
                 Statement s=con.createStatement();
        s.executeUpdate("INSERT INTO date(Date) VALUE ('"+w+"')");
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(Help.class.getName()).log(Level.SEVERE, null, ex);
            }
        
        
        }}

     

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: