码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
golang中string以及slice之间的一些问题
好记性不如烂笔头o_O slice切片不会开辟新的空间a := []int{0,1,2,3}b := make([]int, 8)b = a[:]b[2] = 9fmt.Println(a)fmt.Println(b)输出:[0 1 9 3][0 1 9 3]string底层是用byte数组存的,并...
分类:其他好文   时间:2014-11-23 18:48:08    阅读次数:244
Hello World
1 system.out.println("hello world");system.out.println("hello world");
分类:其他好文   时间:2014-11-23 18:46:54    阅读次数:121
静态方法能不能被覆盖呢?
静态方法能不能被覆盖呢?先看一个例子:public class Base{ //父类 public static int a=10; public static void staticMethod(){System.out.println("StaticMethod of Base"); } pub...
分类:其他好文   时间:2014-11-23 14:26:17    阅读次数:156
三目运算符转型问题
class C { public static void main(String[] args) { int i = 10; //int型变量i = 10 System.out.println(i 3)?23:45;因为boolean表达式2>3为false,所以k的值是45。上述都是关于条件运.....
分类:其他好文   时间:2014-11-23 14:17:51    阅读次数:156
[Swift]Day06:函数
函数参数外部变量名一般情况下你可以不指定外部变量名,直接调用函数:func helloWithName(name: String, age: Int, location: String) { println("Hello \(name). I live in \(location) too. When is your \(age + 1)th birthday?") } helloWit...
分类:编程语言   时间:2014-11-22 21:40:26    阅读次数:300
java从后向前提取后面的几位字符
String str="abcdefgh"; String newStr=String.SubString(str.length()-i); //从后向前第i位提取 System.out.println(newStr); // 将输出字符串最后三位字符fgh...
分类:编程语言   时间:2014-11-22 20:19:28    阅读次数:206
数据库元数据分析Demo
核心类:DatabaseMetaData、ResultSetMetaData 1 System.err.println("**********************************"); 2 Connection conn=DataSourceUtils.getDataSo...
分类:数据库   时间:2014-11-22 11:44:53    阅读次数:240
java将System.out.println的输出导出到文件中
直接看代码1 public static void saveStreamToFile(String savePath,String input){2 try {3 //savePath like c:/log.txt4 System.set...
分类:编程语言   时间:2014-11-21 20:21:50    阅读次数:192
spring跟QuartZ整合
package com.chengxi.qs.service; /*** * 执行的业务逻辑类 * @author wzh * */ public class JobTask { public void work(){ System.out.println("正在调度任务..."); } } <beans xmlns="http://www.springframework.o...
分类:编程语言   时间:2014-11-21 18:54:26    阅读次数:198
编写第一个 Java 程序
public class Hello{ // 是程序的起点,所有程序由此开始运行 public static void main(String args[]) { System.out.println("Hello World!"); }}将上面的代码保存为He...
分类:编程语言   时间:2014-11-21 15:50:19    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!