
java问题
文章平均质量分 65
下一杯咖啡
这个作者很懒,什么都没留下…
展开
-
java编写冒泡排序
定义接口:public interface Algorithm { /**冒泡排序*/ void bubble(int[] arr); }实现类:package algorithm.sort.imp;import algorithm.sort.Algorithm;public class AlgorithmImpl implements Algorithm { //冒泡排序 @Override p...原创 2018-05-02 09:21:45 · 253 阅读 · 0 评论 -
部分java相关问题
1:Arraylist和Linkedlist的区别?ArrayList、LinkedList、Vector和Stack是List的四个实现类,其中Vector是基于JDK1.0,虽然实现了同步,但是效率低,已经不用了,Stack继承Vector 区别: - ArrayList是实现了基于动态数组的数据结构,而LinkedList是基于链表的数据结构 - 对于随机访问get和se...原创 2018-04-25 08:44:28 · 181 阅读 · 0 评论 -
判断字符串中的英文字母汉字空格和其他字符个数
接口:package algorithm.sort.dao;public interface CharacterJudgment { /*判断字符串是不是汉字*/ public int isChinese(String con); /* 判断是不是中文或英文字母*/ public int conValidate(String con); /* 判断字符串是不是数字*/ public int ...原创 2018-05-08 14:54:18 · 718 阅读 · 0 评论 -
利用springAOP做方法执行时间计算
applicationContext.xml配置 <!-- 开启组建扫描 --> <context:component-scan base-package="com.xdl" /> <!-- 开启标注形式的aop --> <aop:aspectj-autoproxy proxy-target-class="true" /> ...原创 2018-07-19 19:15:39 · 2266 阅读 · 0 评论