import java.util.Scanner; public class ArrayAdd { public static void main(String[] args) { int arr[] = {1,2,3}; //初始数组 System.out.println(" 初始数组情况 "); ...
分类:
编程语言 时间:
2021-04-09 13:01:24
阅读次数:
0
做一个多功能计算器 欢迎使用计算器系统 int + int double + double 、 计算 n 的阶乘 计算 a的 n次方、 退出系统 import java.util.Scanner; public class Calculator { public static void main(S ...
分类:
编程语言 时间:
2021-04-09 12:50:24
阅读次数:
0
[root@localhost ~]# uuidgen ens33223bdb47-2fed-4773-b984-5f5733e619042.UUID号写入网络配置文件ifcfg-ens33NAME=ens33DEVICE=ens33ONBOOT=yesUUID=223bdb47-2fed-4773 ...
分类:
系统相关 时间:
2021-04-08 14:02:02
阅读次数:
0
IIS 配置错误:不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。 HTTP 错误 500.19 错误: 解决方案:CMD窗口分别输入: %windir%\system32\inetsrv\appcmd unlock config -section:system.webSer ...
分类:
Web程序 时间:
2021-04-08 13:34:51
阅读次数:
0
The mode is the value in the data set that occurs most frequently. If all of the data values occur only once, or they each occur an equal number of ti ...
分类:
其他好文 时间:
2021-04-08 13:33:00
阅读次数:
0
public class Demo04 { public static void main(String[] args) { //整数拓展 二进制0b 八进制0 十进制 十六进制0x int i1=10; int i2=010; int i3=0x11; System.out.println(i1) ...
分类:
其他好文 时间:
2021-04-08 13:03:44
阅读次数:
0
1:公平锁和非公平锁 1.1 流程图 1.2 源码分析 ? 锁使用 final Lock lock = new ReentrantLock(); new Thread(()->{ lock.lock(); try { System.out.println(" "); Thread.sleep(100 ...
分类:
其他好文 时间:
2021-04-07 11:23:49
阅读次数:
0
下面这个例子和上面一样,除了说是子线程要join主线程。本例中还教会了大家,如何从主线程传参数到子线程。 例:1.5.3_2 class ThreadMark_to_win extends Thread { Thread mainT; Test t; public void run() { try ...
分类:
编程语言 时间:
2021-04-07 11:19:09
阅读次数:
0
@Test void contextLoads() { String str ="!dasd_asda_dasjdlkaj"; System.out.println(a(str)); } //截取字符串 转换大写并且输出 String a(String name) { String[] str= { ...
分类:
其他好文 时间:
2021-04-07 11:18:46
阅读次数:
0
A-AC 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K Special Judge, 64bit IO Format: %lld 题目描述 Crystal's fortune predict system is successfully de ...
分类:
其他好文 时间:
2021-04-07 11:07:42
阅读次数:
0