![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
无
w_goods
en
展开
-
多个类 只能有一个publc class 一个主入口 其他的都是牛马
多个类 只能有一个publc class 一个主入口 其他的都是牛马 //测试类的入口 public class Yuan { public static void main(String[] args) { cle y = new cle(); double c = y.result(2.5); System.out.println("面积:" + c); } } class cle{ double radio; //求圆原创 2021-01-09 11:47:51 · 139 阅读 · 0 评论 -
基于Dbutils工具类(连接和操作)数据库方法
文件夹构建流程 dbutils(本文中是BaseDase)工具类放在util文件夹 dbutils(加载驱动 创建连接 ) public class BaseDao<T> { private static final String URL = "jdbc:mysql://localhost:3306/accountmanager?characterEncoding = ...原创 2020-01-22 16:51:43 · 901 阅读 · 0 评论 -
基于DbUtils操作数据库增删改查
操作方向:view–>service–>dao–>数据库 view层 //新增方法 public static void add(){ System.out.println("新增业务"); System.out.println("请输入账目描述:"); String account_desc=sc.next(); System.out.println...原创 2020-01-22 16:15:09 · 203 阅读 · 0 评论