06 2011 档案

摘要:1、Status类成员变量: private Date createdAt; // 创建时间 private long id; // 微博id private String text; // 微博内容,其中的表情为[表情图片对应的文字] private String source; // 微博来源::::发布此条微博的来源,可以是:新浪微博、手机微博、---- // ----其他网站、其他应用等,一般为一个可以指向这些应用的快捷方式。 private boolean isTruncated; // 是否被截断??? private long inReplyToStatusId; // 回复ID 阅读全文
posted @ 2011-06-12 17:26 奋奋 阅读(2967) 评论(0) 推荐(0)
摘要:1、foreach 语句中:(会抛出空指针异常) String[] strArr = null; for(String tem : strArr){ System.out.println(tem); }2、字符串拼接(+):空字符串对象被替换成:字符串null String str = null; System.out.print(str+"d");//console outputnulldSystem.out实际是PrintStream对象,其中的print方法的参数有:所有基本类型和String,另还有Object 阅读全文
posted @ 2011-06-09 00:42 奋奋