摘要: 定义 基本数据类型常被称为四类八种 四类: 1,整型 2,浮点型 3,字符型 4,逻辑型 八种: 1,整型3种 byte,short,int,long 2,浮点型2种 float,double 3,字符型1种 char 4,逻辑型1种 boolean 引用类型 除了四类八种基本类型外,所有的类型都称 阅读全文
posted @ 2016-05-13 20:54 ①乷壹迣鎅 阅读(214) 评论(0) 推荐(0)
摘要: String str="abcdefghibcbcbc"; String str1 = "abc"; //通过首位字母的索引比较 if(str.indexOf("abc")==0) { System.out.println("true1"); } else { System.out.println( 阅读全文
posted @ 2016-05-13 20:45 ①乷壹迣鎅 阅读(1124) 评论(0) 推荐(0)
摘要: package com.hanqi; import java.util.*; import java.util.Random; public class Test8 { public static void main(String[] args) { // TODO 自动生成的方法存根 //1.随机 阅读全文
posted @ 2016-05-13 14:56 ①乷壹迣鎅 阅读(1011) 评论(0) 推荐(0)