FreeEssays.Education
Education
search Please enter something
log in/sign up
Get Your Essay

Free Essays Technology And Computing Internet Technology Email String Email And Connection Con

Essay About String Email And Connection Con

Download paper
Essay, Pages 1 (143 words)
Latest Update: June 14, 2021
Views: 52
Download
Related Topics:
  • Technology And Computing
    • Internet TechnologySoftware
      • EmailDatabases

Database Connectivity
String name=jTextField1.getText();        String email=jTextField2.getText();        String mobile=jTextField3.getText();        if(name.isEmpty()) {            JOptionPane.showMessageDialog(this, “Name not Entered”);        }        else if(email.isEmpty()) {            JOptionPane.showMessageDialog(this, “Email not Entered”);        }        else if(mobile.isEmpty()) {            JOptionPane.showMessageDialog(this, “Mobile not Entered”);        }        else{        try{            Class.forName(“java.sql.DriverManager”);            Connection con=(Connection) DriverManager.getConnection(“jdbc:mysql://localhost:3306/pk”, “root”, “1234”);            Statement stmt=con.createStatement();            String query=”insert into contactdiary values(“+name+”,”+email+”,”+mobile+”);”;            stmt.executeUpdate(query);            JOptionPane.showMessageDialog(this, “Account added successfully.”);        }        catch(Exception e){            JOptionPane.showMessageDialog(this, e.getMessage());        }        }Add account   String name=jTextField1.getText();        int accno=Integer.parseInt(jTextField2.getText());       int deposit=Integer.parseInt(jTextField3.getText());       String address=jTextField4.getText();       String date=jTextField4.getText();              if(name.isEmpty()) {            JOptionPane.showMessageDialog(this, “Name not Entered”);        }        else if(accno==0) {            JOptionPane.showMessageDialog(this, “Email not Entered”);        }        else if(deposit==0) {            JOptionPane.showMessageDialog(this, “Deposit not Entered”);

Get Your Essay

Cite this page

String Email And Connection Con. (June 14, 2021). Retrieved from https://www.freeessays.education/string-email-and-connection-con-essay/

Search for Free Essay On Any Topic
Search database
search Please enter something
Save time on writing
Hire a pro to write you an essay!
Get Your Essay
FreeEssays.Education
Education
© 2016 - 2025 FreeEssays.Education
[email protected]
COMPANY
LEGAL
Payment
visa mc amex discover
FreeEssays.Education uses cookies. By continuing you agree to our cookie policy
Copying content
is not allowed on this website
Get your own text
Get Your Essay
Give us your email and we'll send you the essay you need
By clicking Send Me The Sample you agree to the terms and conditions of our service. We'll not send you spam or irrelevant messages
We can send you a Sample
Or You Can get your own text
Get Your Essay
Give us your email and we'll send you the essay you need
By clicking Send Me The Sample you agree to the terms and conditions of our service. We'll not send you spam or irrelevant messages
Thanks! Your sample has been sent.
Please check your inbox to verify your email
Get Your Essay