📄 stringutils.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -