改成这样吧import java.io.*;
import java.util.*;/* DOCUMENT THIS CLASS */
public class Test { /* Standard input stream */
private static BufferedReader stdIn =
new BufferedReader(new InputStreamReader(System.in)); /* Standard output stream */
private static PrintWriter stdOut =
new PrintWriter(System.out, true); /* Standard error stream */
private static PrintWriter stdErr =
new PrintWriter(System.err, true); /* Delimiter of student values */
private static final String DELIM = "_"; /* Minimum grade */
private static final int MIN_GRADE = 0; /* Maximum grade */
private static final int MAX_GRADE = 100; /**
* This program reads, from the standard input, a student's grades;
* and then displays, to the standard output, that student's average.
*
* @param args not used
* @throws IOException if error reading from the standard input.
*/
public static void main(String[] args) throws IOException { String student = readStudent(); stdOut.println("The average of the student is: " +student);
} /* DOCUMENT THIS METHOD */
public static String readStudent() throws IOException { String name = "87";
/* PLACE YOUR CODE HERE */
return name;
}
}
import java.util.*;/* DOCUMENT THIS CLASS */
public class Test { /* Standard input stream */
private static BufferedReader stdIn =
new BufferedReader(new InputStreamReader(System.in)); /* Standard output stream */
private static PrintWriter stdOut =
new PrintWriter(System.out, true); /* Standard error stream */
private static PrintWriter stdErr =
new PrintWriter(System.err, true); /* Delimiter of student values */
private static final String DELIM = "_"; /* Minimum grade */
private static final int MIN_GRADE = 0; /* Maximum grade */
private static final int MAX_GRADE = 100; /**
* This program reads, from the standard input, a student's grades;
* and then displays, to the standard output, that student's average.
*
* @param args not used
* @throws IOException if error reading from the standard input.
*/
public static void main(String[] args) throws IOException { String student = readStudent(); stdOut.println("The average of the student is: " +student);
} /* DOCUMENT THIS METHOD */
public static String readStudent() throws IOException { String name = "87";
/* PLACE YOUR CODE HERE */
return name;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货