Java
来自日本的AD钙奶
Joy to the world
展开
-
遍历Map的四种方法
public class NewClass { public static void main(String[] args) { Map<String, String> map = new HashMap<>(); map.put("1", "value1"); map.put("2", "value2"); map.put("3"原创 2016-10-31 14:31:28 · 453 阅读 · 0 评论 -
SQLite Java: Inserting Data
To insert data into a table using the INSERT statement, you use the following steps: First, Connect to the SQLite database. Next, prepare the INSERT statement. If you use parameters for the statement,原创 2017-10-18 15:15:55 · 374 阅读 · 0 评论 -
Java 通过反射原理取得entity的值
如果是entity里面再套层entity的话,就参照下面写个循环就可以了。另外我只是写了个例子,如果值多的话最好用 Class.forName这个方法,嗯,代码如下:/* * To change this license header, choose License Headers in Project Properties. * To change this template file, ch原创 2017-10-18 15:40:20 · 1009 阅读 · 0 评论 -
位运算符 Bitwise Operators
位运算符 Bitwise Operators 位运算符主要针对二进制,它包括了:“与”、“非”、“或”、“异或”。从表面上看似乎有点像逻辑运算符,但逻辑运算符是针对两个关系运算符来进行逻辑运算,而位运算符主要针对两个二进制数的位进行逻辑运算。下面详细介绍每个位运算符。与运算符 “&” 或运算符 “|” 非运算符 “~” 异或运算符 “^” 1.与运算符 与运算原创 2016-09-22 11:18:53 · 1270 阅读 · 0 评论 -
常见JAVA面试问题
J2SEswitch支持的类型byte、short、char、int、Integer、String、Enumjava中集合的几种形式 java集合简介 常用的集合分为List(有序排放)、Map(以名和值一一对应的存放)、Set(既无序也没名) 在这三者之中其中List和Set是Collection接口的子接口,而Map不是Collection接口的子接口 List为了学习List,原创 2017-11-09 17:01:17 · 687 阅读 · 0 评论