58,455
社区成员
发帖
与我相关
我的任务
分享
Returns a string that is a substring of this string. The
* substring begins with the character at the specified index and
* extends to the end of this string.
* @param str
package com.test;
public class TestUtils
{
/**
* Returns a string that is a substring of this string. The
* substring begins with the character at the specified index and
* extends to the end of this string.
* @param str
*/
public static void getS(String str) {
}
}
package com.test;
public class MS_1
{
public static void main(String[] args)
{
String str = "asdasd";
str.substring(0, 1);
TestUtils.getS(str);
}
}
你类比一下不就行了。