摘要:
一、HashSet去重 我们知道 HashSet 天生具备“去重”的特性,那我们只需要将 List 集合转换成 HashSet 集合就可以了,实现代码如下: public class ListDistinctExample { public static void main(String[] arg 阅读全文
摘要:
int a=9; int b=7;float c = (float) a / (float) b; //把整型数据 转换为 浮点型 数据System.out.println(c);System.out.println( String.format("%.2f", c));//保留小数点后2位 方法有 阅读全文
摘要:
SELECT * FROM result co where <if test="projectId != null"> co.projectId=#{projectId} and </if> <if test="startTime!=null and endTime!=null"> modifyTi 阅读全文