大家看下我的readParagraph()哪里错了,帮忙改下,谢谢
//import java.util.*;
import java.io.*;
 class MyInput {
String readParagraph(){
StringBuffer str=new StringBuffer();
String s=new String("");
do{
try {
s=(new BufferedReader(new InputStreamReader(System.in))).readLine();
} catch (IOException e) {
e.printStackTrace();
}
str.append(s+"\n");
}while(s!="");
return str.toString();
}
String readLine(){  //读单行输入
String s=new String("");
try {
s=(new BufferedReader(new InputStreamReader(System.in))).readLine();
} catch (IOException e) {
e.printStackTrace();
}
return s;
}
}
public class NO1 {
public static void main(String args[]){
MyInput i=new MyInput();
System.out.println(i.readLine());
System.out.println(i.readParagraph());
}
}
谢谢