一、首先list遍历方法有那么几种:使用for循环、iterator、还有就是lambda表达式循环 1、首先创建一个测试类 class User2{ Integer id; String name; public User2(Integer id, String name) { this.id = ...
分类:
编程语言 时间:
2021-04-30 12:02:56
阅读次数:
0
package com.itheima.demo02; public class ShangYingDianYing { public static void main(String[] args) { String starring = "刘鑫 张玉提 高源"; System.out.printl ...
分类:
其他好文 时间:
2021-04-30 11:59:42
阅读次数:
0
package com.itheima.demo02; public class GeRenXinXi { public static void main(String[] args) { String name ="张三"; System.out.println(name); int age = ...
分类:
其他好文 时间:
2021-04-30 11:58:53
阅读次数:
0
import java.util.Scanner; //输入并打印 public class ShuRuDaYin { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.p ...
分类:
其他好文 时间:
2021-04-30 11:58:37
阅读次数:
0
package com.itheima.demo01.arr; public class ShiWeiWeiTwo { public static void main(String[] args) { for (int i = 100; i < 1000; i++) { if (i/10%10==2 ...
分类:
其他好文 时间:
2021-04-30 11:58:22
阅读次数:
0
package com.itheima.demo02; public class DingYiShouJi { public static void main(String[] args) { String name1 ="华为 HUAWEI Mate 30E Pro 5G麒麟990E SoC芯片 ...
分类:
移动开发 时间:
2021-04-30 11:58:04
阅读次数:
0
HelloWorld 随便新建一个文件夹,存放代码 新建一个Java文件 文件后缀名为.java Hello.java 【注意点】系统可能没有显示文件后缀名,我们需要手动打开 编写代码 public class Hello{ public static void main(String[] args ...
分类:
编程语言 时间:
2021-04-29 12:22:16
阅读次数:
0
上一篇博文常见Bean拷贝框架使用姿势及性能对比 介绍了几种bean拷贝框架的使用姿势以及性能对比,主要适用的是属性名一致、类型一致的拷贝,在实际的业务开发中,经常会用到驼峰和下划线的互转,本文在之前的基础上进行扩展 cglib hutool 常见Bean拷贝框架下划线驼峰互转扩展支持 I. 驼峰下 ...
分类:
其他好文 时间:
2021-04-29 12:01:50
阅读次数:
0
python print("Hello, World!") ...
分类:
编程语言 时间:
2021-04-28 12:20:04
阅读次数:
0
一、typeof 检测出来的数据类型 --> 基本数据类型 string number boolean null undefined --> 变量初始化了,但是没有赋值 --> 函数没有传实参,那么形参是undefined --> 函数没有返回值,那么函数调用完的地方是undefined --> 复 ...
分类:
Web程序 时间:
2021-04-28 12:17:27
阅读次数:
0