Sorry, do I need to do something different for my program to work? Does it not work already?
Campbell Ritchie wrote:And how are you going to handle a 99×99 board?
Sorry, I forgot to tell you that I updated the update() method to handle negative numbers. Kindly take a look at that one.
Campbell Ritchie wrote:As far as I remember, the board class was all right before; I presume you haven't changed anything.
No,currently I restrict the board size to 26 or less. Is that OK?
Campbell Ritchie wrote:can it handle a size > 26, however?
The regex will allow 99 but the Board will catch it and print this message: The row or column entered is greater than the size of the board.
Campbell Ritchie wrote:But what happens when you give your regex square a99?
No, negative numbers can't get past the regex.
Campbell Ritchie wrote:By the way, is it possible to get negative numbers past that regex?
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)https://products.aspose.com/total/java