Re: Q: Draw square by any symbol.

Posted 09 May 2011 - 05:09 PM

If you want to use your Scanner in multiple methods, you either have to pass it as a parameter (and modify the method headers), or declare it in your class as a static variable. The latter option will require you to declare it in the class, but not inside any method.

Also, you name your Scanner ask, but read in in.nextLine(). Don't you mean to read ask.nextLine() instead?

Re: Q: Draw square by any symbol.

Posted 10 May 2011 - 09:33 AM

Thanks for helping me
both of your replies are great because u r explaining to me the causes of the error (I guess.. )
but my problem is that English is not my first language so I don't really get what u r saying
I`ll be selfish and ask u to guide me what to do exactly..
I have removed both of ask in the button of my work..now I got 1 error