摘要:
阅读全文
posted @ 2021-03-02 20:32
谷先生
阅读(55)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2021-03-02 19:43
谷先生
阅读(108)
评论(0)
推荐(0)
摘要:
public Animal(){ System.out.println("Animal..."); } 总结:属性赋值的先后顺序 ④可以执行多个 阅读全文
posted @ 2021-03-02 15:41
谷先生
阅读(184)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { ths ts =new ths(); ts.setName("李四"); System.out.println(ts.getName()); ts.setAge(2); System.out.println(ts.ge 阅读全文
posted @ 2021-03-02 13:14
谷先生
阅读(67)
评论(0)
推荐(0)
摘要:
/** * 封装和隐藏 */ public class fengzhuang { public static void main(String[] args) { Animal animal =new Animal(); animal.name="黑子"; // animal.age=2; anim 阅读全文
posted @ 2021-03-01 22:01
谷先生
阅读(65)
评论(0)
推荐(0)
摘要:
public class PreparedStatmentDemo { public static void main(String[] args) { try { //var:定义变量 var c =new DbUtil().getConn(); PreparedStatement ps = c. 阅读全文
posted @ 2021-03-01 18:36
谷先生
阅读(224)
评论(0)
推荐(0)
摘要:
链接数据库 public static void main(String[] args) { //简约方式 try { Connection conn = DriverManager.getConnection("jdbc:mysql:/mysql?user=aa"); Statement st = 阅读全文
posted @ 2021-03-01 12:33
谷先生
阅读(252)
评论(0)
推荐(0)
浙公网安备 33010602011771号