asdfasf /** * nihao * @author Administrator * */ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello world!") ...
分类:
其他好文 时间:
2021-04-12 11:46:53
阅读次数:
0
public class Demo { public static void main(String[] args) { System.out.println(Contains1("abfadawdawdawd", ".*daw.*")); System.out.println(Contains2( ...
分类:
其他好文 时间:
2021-04-10 13:19:37
阅读次数:
0
1. 什么是方法? System.out.println() System是系统类,out是System类下的一个对象,println()是out对象下的方法 java方法是语句的集合,他们在一起执行一个功能 方法是解决一类问题的步骤的有序组合 方法包含于类或对象中 方法在程序中被创建,在其他地方被 ...
分类:
编程语言 时间:
2021-04-09 13:33:38
阅读次数:
0
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
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
@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
static关键字 public class OOPDemo01 { //2:赋初值 { System.out.println("匿名代码块"); } //1:只执行一次 static{ System.out.println("静态代码块"); } //3 public OOPDemo01(){ S ...
分类:
其他好文 时间:
2021-04-07 10:49:07
阅读次数:
0
注释 单行注释 //+注释eg://sout是输出语句System.out.println();的快捷输入法 多行注释 /* 注释 */eg:/* 多行注释 多行注释 多行注释 */ 文档注释 /** JavaDoc */和JavaDoc联合使用,一般进大公司用得着。 ...
分类:
编程语言 时间:
2021-04-06 15:07:48
阅读次数:
0
1.main函数快捷键 psvm 2.system.out.printLn sout(相当于eclipse syso) 3.ctrl + alt + t == try catch,意识是surround with try catch, 但是如果要直接写可以"".try直接会提示 4.alt+inse ...
分类:
其他好文 时间:
2021-04-05 12:43:06
阅读次数:
0