67,549
社区成员




public static void main(String[] args) throws Exception
{
System.out.println(test());
}
public static String test() throws Exception
{
String input = new Scanner(System.in).next();
String result = null;
FileReader fr = new FileReader("e:/a.txt");
BufferedReader br = new BufferedReader(fr);
String str = null;
while((str = br.readLine()) != null)
{
String tempStr = str.substring(0,5);
if(tempStr.equals(input))
{
result = str;
break;
}
}
br.close();
fr.close();
return result;
}