1.生成实体类 2.生成JSON数据格式的方法 //存返回数据 List<Menus> totaltype = new ArrayList<>(); //使用map来装前面查到的所有数据 Map<Integer, Menus> map = new HashMap<>(); for (Menus p: ...
分类:
编程语言 时间:
2020-06-24 11:50:57
阅读次数:
95
什么是层序遍历层序遍历就是从上到下按层打印二叉树,同一层结点从左至右输出。每一层输出一行。例如这样一个二叉树:[3,9,20,null,null,15,7]返回结果为:代码实现:ArrayList<ArrayList<Integer>>Print(TreeNodepRoot){ArrayList<ArrayList<Integer>>res=newA
分类:
其他好文 时间:
2020-06-24 09:15:25
阅读次数:
55
仅做个人记录使用 ###1、一个object对象有对应的hashCode值,重写了toString方法如何知道hashCode值? object原生的toString()方法:返回单前对象的类名及hash值。相当于getClass().getName() + '@' + Integer.toHexS ...
分类:
编程语言 时间:
2020-06-23 21:25:18
阅读次数:
46
Delphi XE IdTCPClient1 和 IdTCPServer1 数据的发送与接收(indy10) 1、IdTCPClient1 端 发送数据 1.1 发送结构体: //定义结构体 TMData = record id:Integer; Name:Array[0..20] of Char; ...
为什么要lambda函数 匿名函数是许多编程语言都支持的概念,有函数体,没有函数名。1958年,lisp首先采用匿名函数,匿名函数最常用的是作为回调函数的值。正因为有这样的需求,c++引入了lambda 函数,你可以在你的源码中内联一个lambda函数,这就使得创建快速的,一次性的函数变得简单了。例 ...
分类:
编程语言 时间:
2020-06-23 13:37:17
阅读次数:
56
(1)创建一个用于对数据库表t_article数据操作的接口ArticleMapper ```java @Mapper public interface ArticleMapper { public Article selectArticle(Integer id); } ``` (2)创建XML映 ...
分类:
其他好文 时间:
2020-06-23 13:11:10
阅读次数:
45
vs打开工程后,出现 未能正确加载“VaCodeInspectionsPackage”包 错误,此错误是va插件导致的, 请检查va的安装目录中,vax.interop.dll文件是否存在,是否被杀软删除,如被删除,打开杀软还原此文件即可 vax.interop.dll文件目录: ...
分类:
其他好文 时间:
2020-06-22 22:54:07
阅读次数:
125
题目如下: Given an integer n and an integer start. Define an array nums where nums[i] = start + 2*i (0-indexed) and n == nums.length. Return the bitwise X ...
分类:
其他好文 时间:
2020-06-22 15:49:58
阅读次数:
98
1、测试 openSession 使用openSession() 获取 session, 注释掉 session.close(), 访问测试 @Override public List<FactComsumption> getFactComsumptionList(Integer companyId ...
分类:
Web程序 时间:
2020-06-22 15:22:32
阅读次数:
48
题目如下: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: a ...
分类:
其他好文 时间:
2020-06-22 15:12:41
阅读次数:
60