(1) 统计该字符串中字母s出现的次数;
(2) 取出子字符串”test”;
(3) 将本字符串复制到一个字符数组Char[] str中;
(4) 用两种方式实现该字符串的倒叙输出。(用StringBuffer和for循环方式分别实现);
package Example;
public class Example {
public static void main(String[]args
(1) 统计该字符串中字母s出现的次数;
(2) 取出子字符串”test”;
(3) 将本字符串复制到一个字符数组Char[] str中;
(4) 用两种方式实现该字符串的倒叙输出。(用StringBuffer和for循环方式分别实现);
package Example;
public class Example {
public static void main(String[]args