例子: String r=“我是谁” System.out.println(r.length()) ...
分类:
其他好文 时间:
2019-11-19 16:55:24
阅读次数:
41
public class Test5 { public static void main(String[] args) { int j; for(int i= 2;i<=200;i++){ j=2; while (i%j!=0){ j++; if(i==j){ System.out.println( ...
分类:
其他好文 时间:
2019-11-18 23:29:20
阅读次数:
224
testInterceptor @RequestMapping(value="testInterceptor") public String testInterceptor( ) { System.out.println("处理请求的方法....!"); return "success"; } My ...
分类:
编程语言 时间:
2019-11-18 00:08:11
阅读次数:
112
1.生产者消费者模型 java public class ProducterConsumerTest{ public static void main(String[] args){ System.out.println("this is a test..."); Message msg=new M ...
分类:
其他好文 时间:
2019-11-15 20:49:42
阅读次数:
64
本文源码:GitHub·点这里||GitEE·点这里一、使用场景应用代码publicclassC01_InScene{publicstaticvoidmain(String[]args){Stringc0="cicada";Stringc1="cicada";System.out.println(c0==c1);//true}}String类型就是使用享元模式。String对象是final类型,对
分类:
编程语言 时间:
2019-11-14 09:15:54
阅读次数:
89
package main import ( "fmt" "time" ) func main021() { nowTime := time.Now() fmt.Println(nowTime.Year())//2018 fmt.Println(nowTime.Month())//December f... ...
分类:
编程语言 时间:
2019-11-14 00:05:02
阅读次数:
66
TestInherits.java package Test; class Grandparent { public Grandparent() { System.out.println("Grandparent Created."); } public Grandparent(String str ...
分类:
其他好文 时间:
2019-11-12 20:23:30
阅读次数:
99
```public class MyThreadPoolDemo { public static void main(String[] args) {// System.out.println(Runtime.getRuntime().availableProcessors()); //一池5个线程... ...
分类:
编程语言 时间:
2019-11-12 10:53:05
阅读次数:
86
panic: 1.报告致命错误的一种方式,如:数组访问越界,空指针引用等。2.panic异常发生时,程序会中断运行。 import "fmt" func testa() { fmt.Println("aaaaaaaaa") } func testb(i int) { fmt.Println("bbb ...
分类:
其他好文 时间:
2019-11-11 00:21:53
阅读次数:
88
class Solution { public String InitDocument(String link,String code,int time,int charter) { if(time-1==charter)return null; System.out.println("第"+tim ...
分类:
其他好文 时间:
2019-11-10 19:45:29
阅读次数:
80