public static void main(String[] args) { int num1 = 10_0000_0000; int rate = 20; long total = num1 * rate; System.out.println(total);// 输出为-1474836480 ...
分类:
其他好文 时间:
2021-03-01 14:18:24
阅读次数:
0
public class demo4 { //逻辑运算符 public static void main(String[] args) { //与(&&)或(||)非(!) boolean a = true; boolean b = false; System.out.println(a && b) ...
分类:
其他好文 时间:
2021-03-01 14:15:22
阅读次数:
0
Scanner Java.util.Scanner是Java5的新特征,我们可以通过Scanner类来获取用户的输入。 基本语法: Scanner s = new Scanner(System.in); 通过Scanner类的next()和nextLine()方法获取输入的字符串,在读取前我们一般需 ...
分类:
编程语言 时间:
2021-03-01 13:42:30
阅读次数:
0
public class splitTest { public static void main(String[] args) { String a = "@123"; String b = "123@"; String c = "3@@@"; String[] aArr = a.split("@" ...
分类:
其他好文 时间:
2021-03-01 13:34:57
阅读次数:
0
java基本运算符解析(1) 基本加减乘除间运算 public class Demo1 { public static void main(String[] args) { int a = 20; int b = 30; int c = 40; int d = 25; System.out.prin ...
分类:
编程语言 时间:
2021-03-01 13:30:50
阅读次数:
0
方式 抛出异常 有返回值,不抛出异常 阻塞等待 超时等待 添加 移除 检测队首元素 ...
heap导出几种方式: 1、设置启动的JVM参数,当heap溢出时自动生成dump,vm options:-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${目录} 2、通过jmap实时导出dump,这个最好不要在高峰时期使用。命令:jmap -du ...
分类:
其他好文 时间:
2021-03-01 13:22:53
阅读次数:
0
主要依靠一个js文件 ,引入到content页面 $(function () { $.get("header.html",function (data) { $("#header").html(data); }); $.get("footer.html",function (data) { $("# ...
分类:
Web程序 时间:
2021-03-01 13:11:10
阅读次数:
0
虚树 [SDOI2011]消耗战 板题,基本上是对着网上的板子敲的 #include <bits/stdc++.h> using namespace std; inline int read() { int out = 0; register char cc = getchar(); while ( ...
分类:
其他好文 时间:
2021-03-01 12:59:52
阅读次数:
0
1.什么是栈 栈是 OI 中常用的一种线性数据结构,栈的修改是按照后进先出的原则进行的,因此栈通常被称为是后进先出(last in first out)表,简称 LIFO 表。 2.基本操作 1.初始化 2.判空 3.求栈中实际元素个数 4.进栈 5.出栈 6.取栈顶元素 此处只给出了其中三步骤 3 ...
分类:
其他好文 时间:
2021-03-01 12:51:40
阅读次数:
0