public class demo5 { public static void main(String[] args) { int a = 10; int b = 20; a+=b;//a = a+b a-=b;//a = a-b System.out.println(a); //字符串连接符 Sy ...
分类:
其他好文 时间:
2021-03-02 11:50:18
阅读次数:
0
android开发软件!2021年Android工作或更难找,内含福利 ...
分类:
移动开发 时间:
2021-03-02 11:43:16
阅读次数:
0
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
一个在android 目录下,一个在android--app 目录下。 在android--app 目录下的build.gradle文件,可以设置 //混淆开启 解决Removing unused resources requires unused code shrinking to be rurn ...
分类:
移动开发 时间:
2021-03-01 13:32:22
阅读次数:
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