摘要: 一、概念 将基本数据类型封装成对象的好处在于可以在对象中定义更多的功能方法操作该数据。 二、常用操作 1.常用的操作: 用于基本数据类型与字符串之间的转换。 基本数据类型 包装类 byte Byte short Short int Integer long Long float Float doub 阅读全文
posted @ 2017-01-16 13:21 黑米面包派 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1 package Stirng类; 2 /** 3 * String 常见的相关方法摘要 4 * @author Administrator 5 * 6 */ 7 public class DemoStringMethod { 8 public static void main(String[] args) { 9 String s = "he... 阅读全文
posted @ 2017-01-16 11:30 黑米面包派 阅读(211) 评论(0) 推荐(0) 编辑