1.设置环境变量格式:set classpath=c:\jdk1.5\bin;

2.静态方法不可以调用实例方法;

3.System.out.println("我们是学生".length());   输出结果5

4.public int indexOf(String str, int fromIndex);

@param str the substring to search for.
@param fromIndex the index from which to start the search.
@return the index of the first occurrence of the specified substring,
starting at the specified index,
or {@code -1} if there is no such occurrence.

5."smiles".substring(1, 5) returns "mile"

6.

posted on 2019-01-23 11:38  西伯尔  阅读(154)  评论(0编辑  收藏  举报