0
for(int x=0;x<n;x++){
BT[x]=0;
WT[x]=0;
JB[x]=0;
s1[x]=" ";
s2[x]=" ";
}
文字列s1とs2を初期化できません。エラーが発生しました。配列必須ですが文字列が見つかりませんでした。配列が必要ですが文字列が見つかりましたエラー
int n,BT[],WT[],JB[];
String s1[];
String s2[];
String s=JOptionPane.showInputDialog("Enter no of process");
//System.out.println("Enter no of process");
n=Integer.parseInt(s);//sc.nextInt();
BT=new int[n+1];
WT=new int[n+1];
JB=new int[n+1];
s1=new String[n+1];
s2=new String[n+1];
これは、S1およびS2
それを修正