前提
javaでタイピングゲームを作っています。
if文で以下のエラーが発生してしまいます。
色々調べてみたのですが、どう改善したらよいのか分かりません。
ご意見をお聞かせ願います。
発生している問題・エラーメッセージ
エラー: 式の開始が不正です if(Dic.count==) { ^
該当のソースコード
java
1import java.util.Scanner; 2 3public class Typing { 4 // TODO Auto-generated method stub 5 private String lang=null; 6 private String data=null; 7 private int i; 8 private String choise; 9 10 Dic d = new Dic(); 11 Scanner s = new Scanner(System.in); 12 13 public void play(String scan) { 14 if(scan=="start") { 15 this.lang=scan; 16 } 17 do{ 18 if(this.lang!=null) { 19 do { 20 if(Dic.count==/*言語の数*/) { 21 System.out.println( 22 "全問終了、正答率は" 23 +(100-100*Dic.num//*言語の数*/) 24 +"%です"); 25 return; 26 } 27 i = d.Numbers(); 28 choise=Dic.dic[i]; 29 30 }while(choise==null); 31 this.lang=choise; 32 Dic.dic[i]=null; 33 34 System.out.println(this.lang); 35 this.data=s.nextLine(); 36 } 37 if(this.lang==null) { 38 System.out.println("もう一度入力してください"); 39 this.lang=scan; 40 System.out.println(this.lang); 41 this.data=s.nextLine(); 42 } 43 if(this.data.equals(this.lang)) { 44 Dic.count++; 45 } 46 47 }while(this.data.equals(this.lang)); 48 49 if(this.data.equals("end")) { 50 System.out.println("終了します"); 51 return; 52 } 53 Dic.num++; 54 Typing t = new Typing(); 55 t.play(this.lang); 56 } 57} 58