上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 73 下一页
摘要: 写之前先看下 ArrayList 子函数 contains 的Api 怎么介绍: boolean contains(Object o) 如果此列表中包含指定的元素,则返回 true。 先看个字面意思过过眼就好了 哈哈哈 然之后 我们上实例见 问题:(详看注释) import java.util.Ar 阅读全文
posted @ 2021-04-17 21:08 咸瑜 阅读(135) 评论(0) 推荐(0)
摘要: public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri 阅读全文
posted @ 2021-04-17 19:34 咸瑜 阅读(65) 评论(0) 推荐(0)
摘要: List两个子类的特点 List的两个子类的特点 因为两个类都实现了List接口,所以里面的方法都差不多,那这两个类都有什么特点呢? ArrayList: 底层数据结构是数组,查询快,增删慢。 LinkedList: 底层数据结构是链表,查询慢,增删快。 这个两个个子类有什么区别和共同点? Arra 阅读全文
posted @ 2021-04-17 19:21 咸瑜 阅读(103) 评论(0) 推荐(0)
摘要: 參考文獻:https://www.jianshu.com/p/f3f6b12330c1 文獻来源:简书 关键字: Java Exception遇到异常信息Exception in thread "main" java.util.ConcurrentModificationException。 假设我 阅读全文
posted @ 2021-04-17 16:40 咸瑜 阅读(313) 评论(0) 推荐(0)
摘要: nice~! 阅读全文
posted @ 2021-04-14 13:19 咸瑜 阅读(56) 评论(0) 推荐(0)
摘要: Android studio 自动导入(全部)包 import(转) 转 https://blog.csdn.net/buaaroid/article/details/44979629 1 Android studio 只有import单个包的快捷键:Alt+Enter。没有Eclipse下的快速导 阅读全文
posted @ 2021-04-11 09:11 咸瑜 阅读(845) 评论(0) 推荐(0)
摘要: MySql 类型说明int 整型double 浮点型 例如 double(5,2) 即: xxx.xx 总长五位 小数点后两位decimal 浮点型 在表单钱这方面用该类型 因为不会造成精度丢失char 固定长度字符串类型 例如 char(255) 最大就装255个字符 256都不行 ✖例子:cha 阅读全文
posted @ 2021-03-25 10:06 咸瑜 阅读(19) 评论(0) 推荐(0)
摘要: SQL语句的分类:DQL(数据查询语言):查询语句、凡是select语句都是DQLDML(数据操作语言):insert delete updata 对表当中的数据进行'增删改'DDL(数据定义语言): create drop alter 对表结构的 '增删改'TCL(事务控制语言): commit提 阅读全文
posted @ 2021-03-22 15:54 咸瑜 阅读(9) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-03 07:54 咸瑜 阅读(59) 评论(0) 推荐(0)
摘要: Math类的random()方法 Math类的random()方法可以生成大于等于0.0、小于1.0的double型随机数。 Math.random()方法语句基础上处理可获得多种类型、或任意范围的随机数。 公式: int num=(int)(Math.random()*n); //返回大于等于0小 阅读全文
posted @ 2021-03-02 15:04 咸瑜 阅读(493) 评论(0) 推荐(0)
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 73 下一页