码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
String类型字符 常用的方法
例子: String r=“我是谁” System.out.println(r.length()) ...
分类:其他好文   时间:2019-11-19 16:55:24    阅读次数:41
求1到200之间的素数
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
SpringMvc 拦截器
testInterceptor @RequestMapping(value="testInterceptor") public String testInterceptor( ) { System.out.println("处理请求的方法....!"); return "success"; } My ...
分类:编程语言   时间:2019-11-18 00:08:11    阅读次数:112
synchronized wait notify 生产者消费者
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
Java描述设计模式(18):享元模式
本文源码: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
GO语言常用标准库03---time包
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
java 自定义线程池
```public class MyThreadPoolDemo { public static void main(String[] args) {// System.out.println(Runtime.getRuntime().availableProcessors()); //一池5个线程... ...
分类:编程语言   时间:2019-11-12 10:53:05    阅读次数:86
panic 和 recover的区别
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
5792条   上一页 1 ... 79 80 81 82 83 ... 580 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!