请高手进来指导一下
class test{public static void main (String args[]){
String str=new String("student");
System.out.println(str.substring(1,4));
System.out.println(str.concat("good"));
System.out.println(str.replace("t","d"));
}}
运行的时候出现错误,高手指教一下