關於java錯誤

這是原始碼 import java.io.*; class PPP { public static void main(String[] args) throws IOException { System.out.println("請輸入目前打擊率(單位:成)"); System.out.println("->"); BufferedReader br = new BufferedReader(new... 顯示更多 這是原始碼
import java.io.*;
class PPP {
public static void main(String[] args)
throws IOException {
System.out.println("請輸入目前打擊率(單位:成)");
System.out.println("->");

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int liter = Integer.parseInt(str);
if(liter<2) {
System.out.println("打擊不理想");
else if (liter<3){
System.out.println("打擊尚可");
else if (liter>=3) {
System.out.println("打擊穩定");

}

}

}
}


}

這是出現錯誤
C:\Documents and Settings\twbak\My Documents\PPP.java:13: 'else' without 'if'
else if (liter<3){
^
C:\Documents and Settings\twbak\My Documents\PPP.java:15: 'else' without 'if'
else if (liter>=3) {
^
2 errors

Process completed.

請問要怎麼修改阿??
1 個解答 1