- 博客(5)
- 收藏
- 关注
原创 ssm
bean 包 User public class User { private int id; private String name; private String password; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() {
2020-07-17 10:36:37 83
原创 servlet
Dao包 Userdao package dao; import model.User; import util.DBUtil; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class UserDao { public int add(User user) { Connecti
2020-07-03 21:38:28 96
原创 jdbc
jdbc_test public class jdbc_test { public static void main(String[] args) throws ClassNotFoundException, SQLException { Connection conn = null; PreparedStatement pstmt1 = null; PreparedStatement pstmt2 = null; try {
2020-06-30 08:01:11 97
原创 web
HelloServlet public class HelloServlet implements Servlet { @Override public void init(ServletConfig servletConfig) throws ServletException { } @Override public ServletConfig getServletConfig() { return null; } @Ove
2020-06-30 07:48:43 81
原创 斗地主发牌理牌
代码 package a; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; public class a { private static <list> void swap(List<list> list,int index1,int index2) { //数组元素交换位置 list list1=li
2020-06-27 21:29:09 122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人