class crook{
//this is a recursive method
static void dogs(int y){
int result;
if (y==1){
y=1;
System.out.println(y);
}
else {
result = Gremlin.dogs(y-1);
System.out.println(result);





Cannot get this to work, error
Calling from main, x is input
crook.dogs(x);

Need x-1, everytime user click "ok" on Joption Pane!!!!
Thank You