Skip to content

Commit 4f95856

Browse files
committed
2 parents aabf8ff + f9b8636 commit 4f95856

File tree

2 files changed

+40
-30
lines changed

2 files changed

+40
-30
lines changed

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,6 @@ This advanced-level repository equips learners with the necessary skills to exce
3131
- Spring Boot Restful API
3232
- JavaScript
3333

34-
## 🎓 Skills Developed
35-
1. **An attitude of inquiry**
36-
2. **Confidence and ability to tackle new problems**
37-
3. **Ability to interpret events and results**
38-
4. **Ability to work as a leader and as a member of a team**
39-
5. **Assess errors in systems/processes/programs/computations and eliminate them**
40-
6. **Observe and measure physical phenomena**
41-
7. **Write reports**
42-
8. **Select suitable equipment, instruments, materials & software**
43-
9. **Locate faults in systems/processes/software**
44-
10. **Manipulative skills for setting and handling systems/process/issues**
45-
11. **The ability to follow standard/legal procedures**
46-
12. **An awareness of Professional Ethics**
47-
13. **Need to observe safety/general precautions**
48-
14. **To judge magnitudes/results/issues without actual measurement/actual contacts**
49-
5034
## Repository Overview
5135
### Java Fundamentals
5236

@@ -125,18 +109,4 @@ This advanced-level repository equips learners with the necessary skills to exce
125109
- Implement sessions in JSP for efficient web application management.
126110
- Apply a wide range of concepts to projects, allowing you to practice and reinforce your new skills.
127111

128-
**Textbook:**
129-
- [The Full Stack Developer: Your Essential Guide to the Everyday Skills Expected of a Modern Full Stack Web Developer](https://www.amazon.in/Full-Stack-Developer-Essential-Everyday/dp/1484241517) - This book comprehensively covers the skills and knowledge required for modern full-stack web development [[link](https://www.amazon.in/Full-Stack-Developer-Essential-Everyday/dp/1484241517)].
130-
131-
**Reference Link:**
132-
- [The Full Stack Developer: Your Essential Guide - O'Reilly](https://www.oreilly.com/library/view/the-full-stack/9781484241523/) - An essential resource providing in-depth insights into the everyday skills expected of a modern full-stack web developer [[link](https://www.oreilly.com/library/view/the-full-stack/9781484241523/)].
133-
134-
## 🌐 Sources
135-
1. [Amazon.in - Buy The Full Stack Developer: Your Essential Guide to ...](https://www.amazon.in/Full-Stack-Developer-Essential-Everyday/dp/1484241517)
136-
2. [Academia.edu - The Full Stack Developer Your Essential Guide to ...](https://www.academia.edu/40632537/The_Full_Stack_Developer_Your_Essential_Guide_to_the_Everyday_Skills_Expected_of_a_Modern_Full_Stack_Web_Developer_Chris_Northwood)
137-
3. [O'Reilly - The Full Stack Developer: Your Essential Guide ...](https://www.oreilly.com/library/view/the-full-stack/9781484241523/)
138-
4. [Amazon.in - Buy The Full Stack Developer: Your Essential Guide to ...](https://p-yo-www-amazon-in-kalias.amazon.in/Full-Stack-Developer-Essential-Everyday/dp/1484247493)
139-
5. [O'Reilly - 6. Front End - The Full Stack Developer](https://www.oreilly.com/library/view/the-full-stack/9781484241523/html/471976_1_En_6_Chapter.xhtml)
140-
6. [LinkedIn - Mastering the Full Stack - A Comprehensive Guide for ...](https://www.linkedin.com/pulse/mastering-full-stack-comprehensive-guide-modern-developers)
141-
142112
This README serves as a comprehensive guide for learners enrolled in the repository, outlining the curriculum's objectives, technologies covered, and skills developed throughout the program.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Insert data into database using JDBC.
2+
```
3+
package insertData;
4+
5+
import java.sql.Connection;
6+
import java.sql.DriverManager;
7+
import java.sql.PreparedStatement;
8+
import java.util.Scanner;
9+
10+
public class insertData {
11+
12+
private static Scanner sc;
13+
14+
public static void main(String[] args) throws Exception { // throws Exception is used to handle the exception without using try-catch block
15+
16+
sc = new Scanner(System.in);
17+
System.out.println("Enter the student details: ");
18+
System.out.print("Enter the student id: ");
19+
int id = sc.nextInt();
20+
System.out.print("Enter the student name: ");
21+
String name = sc.next();
22+
System.out.print("Enter the student branch: ");
23+
String branch = sc.next();
24+
25+
Class.forName("com.mysql.cj.jdbc.Driver"); // load and register the driver
26+
27+
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3308/jdbc_db", "root", "Akash@123"); // establish the connection
28+
29+
PreparedStatement ps = connection.prepareStatement("insert into student values('"+id+"','"+name+"','"+branch+"')"); // execute the query")
30+
31+
int i = ps.executeUpdate(); // execute the query
32+
if (i > 0) // if the record is inserted successfully then it will return 1 else 0
33+
System.out.println("Record inserted successfully");
34+
else
35+
System.out.println("Record not inserted successfully");
36+
37+
}
38+
39+
}
40+
```

0 commit comments

Comments
 (0)