自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 String 初始化 equals ==

一、 String初始化二 、 equals 和==

2016-06-20 20:43:37 380

原创 单例模式—java实现

单例模式的java实现

2016-05-21 17:09:57 383

原创 for语句

public class ForStatement { static boolean foo(char c) { System.out.print(c); return true; } public static void main( String[] argv ) { int i = 0;/*fo

2016-05-03 11:12:08 654

原创 短路与非短路运算符

根据下面的代码,String s = null;会抛出NullPointerException异常的有()。if( (s!=null) & (s.length()>0) )if( (s!=null) && (s.length()>0) )if( (s==null) | (s.length()==0) )if( (s==null) || (s.

2016-05-03 10:34:31 945

原创 Try、catch和finally

public class TryCatchFinally { public static String output =""; public static void foo(int i){ try{ System.out.println("try"); if(i == 1){ throw

2016-05-03 09:33:17 347

原创 将ISO8859-1字符串转成GB2312编码

public String(byte bytes[], Charset charset)函数可以用指定字节数组和编码来构造字符串。public byte[] getBytes(Charset charset)函数把字符串按指定编码来得到字节数组。可以用这两个函数来实现编码转:new String(String.getBytes("ISO8859-1"),GB2312);

2016-05-03 09:30:34 3087

原创 基类型和引用类型的比较

比较引用类型和基类型

2016-05-02 18:36:17 530

原创 引用类型和基类型

class Test{ long width; public Test(long l) { width = l; } public static void main(String[] args) { Test a, b, c; a = new Test(42L); b = new Test(42

2016-05-02 16:03:53 833

原创 移位操作符

java 移位操作符:<< >> >>>

2016-05-02 11:11:34 449

原创 String、StringBuffer和StringBuider

String、StringBuffer和StringBuider

2016-05-01 10:18:44 364

原创 String类中split方法的使用

String类中split方法的使用split 方法:将一个字符串分割为子字符串,然后将结果作为字符串数组返回。

2016-04-10 09:59:55 787

原创 install torch7 on centos6.5

install torch7 on centos6.5+cuda6.5step1:setting system environment for installing torch and itorchstep2:installing torch on centos step3: installing itorch on centosstep4: installing matio

2016-03-30 10:09:18 3314

原创 String常用的方法

String常用的方法Contents:1. length()2. substring()3. toCharArray()4. charAt()5. indexOf()

2016-03-03 21:04:10 336

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除