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.
作者:西伯尔
出处:http://www.cnblogs.com/sybil-hxl/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。