数字基本数据类型赋值与比较 //byte y = 128;编译错误 byte j = 127;//编译通过 byte x = (byte)(127+1);//编译通过 byte g = 1+1;//编译通过 //byte h = 139+1;编译错误 short i1 = 127; System.o ...
分类:
其他好文 时间:
2021-03-10 12:55:56
阅读次数:
0
在学习过程中敲如下的一段代码: public class example4{ public static void main(String[] args){ int n=9; while(n>6){ System.out.println("n = "+n); n--; } } } 文件名为 exam ...
分类:
编程语言 时间:
2021-03-09 13:56:20
阅读次数:
0
1. 修改文件如下 vim /lib/systemd/system/docker.service [Service]Type=notifyLimitNOFILE=1048576LimitNPROC=1048576LimitCORE=infinity 2. 重启服务 sudo systemctl da ...
分类:
其他好文 时间:
2021-03-09 13:55:48
阅读次数:
0
Instant 类的使用 Instant 类概述 在时间线上的瞬间点。该类在时间线上建立单个瞬时点。 这可能用于在应用程序中记录事件时间戳。 now( ) 方法 //now() 获取本初子午线的时间 Instant instant = Instant.now(); System.out.printl ...
分类:
编程语言 时间:
2021-03-09 13:52:20
阅读次数:
0
在VS2017 X64下加载NIDAQmx 报error LNK2019,是加载的lib路径问题 不要使用下面目录的库 C:\Program Files (x86)\National Instruments\NI-DAQ\DAQmx ANSI C Dev 而要使用以下目录的库 C:\Program ...
分类:
其他好文 时间:
2021-03-09 13:44:36
阅读次数:
0
代码例子如下 public class Father{ private int i = test(); private static int j = method(); static{ System.out.print("(1)"); } Father(){ System.out.print("(2 ...
分类:
其他好文 时间:
2021-03-09 13:44:24
阅读次数:
0
BeanFacotry是spring中比较原始的Factory。如XMLBeanFactory就是一种典型的BeanFactory。原始的BeanFactory无法支持spring的许多插件,如AOP功能、Web应用等。 ApplicationContext接口,它由BeanFactory接口派生而 ...
分类:
编程语言 时间:
2021-03-09 13:08:28
阅读次数:
0
学习java的每日小收获 字符串连接符 以下面代码为例: public static Medo02{ public static void main(String agrs[]){ int i=10; int j=20; System.out.println(" "+i+j);//字符串连接符号 S ...
分类:
编程语言 时间:
2021-03-09 13:04:21
阅读次数:
0
包装类 基本数据类型所对应的引用数据类型 0bject可统一所有数据,包装类的默认值是null 包装类对应 基本数据类型 包装类型 byte Byte short Short int Integer long Long float Float double Double boolean Boolea ...
分类:
其他好文 时间:
2021-03-08 14:18:04
阅读次数:
0
if单选择结构 if双选择结构 ifif多选择结构 public class IfDemo03 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.printl ...
分类:
其他好文 时间:
2021-03-08 14:03:15
阅读次数:
0