java基础ch1
来源:互联网 发布:win10限制软件联网 编辑:程序博客网 时间:2024/05/16 09:42
1.java基本类型:int、short、long、byte、float、double、boolean、char
2.变量和常量,变量:public int i;public String str中i和str为变量;public final int I=10;public final String STR="hello"
中I和STR为常量。
3.如果想要遍历一个字符串,并依次查看每一个代码点:int cp = String.codePointAt(i);
4.String StirngBuffer StringBuilder
5.判断二个字符串是否相同使用equals()方法,不需要区别大小写使用equalsLgnoreCase()方法,字符串比较compareTo(String other);
判断字符串是否以suffix结尾endsWith(String suffix)/startsWith(String
suffix);subString/replace/indexof/toUpperCase/toLowerCase/trim等方法
6.控制台标准输入流:Scanner in = new Scanner(System.in);in.nextLine();
7.块的作用域{}但NEW实例执行
8.多重条件判断和选择时需要注意Switch(int)语句只能是int类型和enum类型。
9.break、continue、return,break跳出循环体;continue跳出本次循环;return跳出该方法体;
10.数字copey:System.arrayCopy(from,fromindex,to,toindex,count);
- java基础ch1
- Java OOP ch1
- Java tuts notes - ch1
- 《Java数据结构与算法》笔记-CH1
- CH1 对象导论——Thinking in Java 读书笔记
- 精粹ch1
- Ch1:概述
- Ch1:概述
- ch1 基础知识
- ch1 开始
- corejsf note ch1
- ch1处理器管理
- California Mathmetics-G6-Ch1
- 《走进搜索引擎》-----Ch1---引言
- C++Primer Excise Ch1
- CPP_Primer 笔记-ch1
- Ch1-4: anagram string
- Ch1 Oracle数据库基本概念
- iOS-卸载xcode
- vc++6.0中文档、视图与框架的互相调用
- Excel数据导入到sql中
- django初体验-网站sample
- TouchPanel在MSM7X27上的移植
- java基础ch1
- directshow获取视频播放消息
- i2c设备驱动(ds1337实例:内核代码)
- Nand ECC校验和纠错原理及2.6.27内核ECC代码分析<转帖>
- TextBox回车自动提交问题
- 怎样编写Apple Push Notification服务器
- 字节序问题--大端法小端法
- AIR文件操作:使用文件对象操作文件和目录 .
- Answer to Chapter 9 of O'Reilly Learning Sql on SQL Server 2005