stringutils.java
来自「专业汽车级嵌入式操作系统OSEK的源代码」· Java 代码 · 共 26 行
JAVA
26 行
package java.lang;
/**
* Utilities for non-standard String maniplulation.
* Use of these utilities will make your programs non-standard.
*/
public final class StringUtils
{
private StringUtils() {
}
/**
* Return the character array corresponding to the String without copying it.
* This method, unlike the toCharArray method of String, uses no memory.
* This method should be used with care as it is non-standard and allows
* the contents of a String to be overwritten.
* Use in user programs will make the programs non-standard and non-portable.
* @param s the String whose characters are required
* @return the character array (uncopied)
*/
public static char [] getCharacters(String s) {
return s.characters;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?