Plz find my error. I can’t find it
import java.util.*;
public class Main {
public static void magical_park(char a[][100],int m,int n, int k, int s){
boolean success = true;
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
char ch = a[i][j];
if(s<k){
success = false;
break;
}
if(ch=='*'){
s+=5;
}else if(ch=='.'){
s-=2;
}else{
break;
}
if(j!=n-1){
s--;
}
}
}
if(success){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
public static void main(String args[]) {
// Your Code Here
int m,n,k,s;
char park[100][100];
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
System.out.print(park[i][j]);
}
}
magical_park(park,m,n,k,s);
return 0;
}
}