Hey,
You should look into the method "compareTo(String s)" for Strings. The result is negative if the first String being compared is "more" alphabetical than the parameter. Conversely, it will...
Type: Posts; User: Jakesta42
Hey,
You should look into the method "compareTo(String s)" for Strings. The result is negative if the first String being compared is "more" alphabetical than the parameter. Conversely, it will...
Thanks for the reply! :) Yes, that actually puts what I don't understand in perfect words. How is it that the entire "stack" is returned? The factorial method makes more sense now that you said that,...
Hello Everyone,
I'm just starting to get into Recursions and Sorting Algorithms and all that jazz, and I'm having a hard time getting my head around the idea of a
method calling itself until a...
As you can see in the code, the 'WinnerString' is undefined at first. It is set to the value of the button if a winning combination is met. Otherwise it stays blank. When the button is clicked (which...
Thank you for all of these replies. Yes, the code has been changed a little, and I have tried using a println everytime the Applet reaches that button. The problem seems to be that ActionPerformed is...
Yes, I did change all of the string comparisons to '.equals()', but the same problem still persists, and there was no visible change. Sorry about this; it's difficult to explain the specific problem,...
Yes, I understand that the Applet ends up comparing blank strings, which is what initiates the 'Win' boolean, but I already tried to find my way
around that with the 'IfNull' boolean at the end.
...
Apologies, I'm new to this forum. The combinations that aren't working are:
Row1Column1 + Row1Column2 + Row1Column3
Row1Column3 + Row2Column3 + Row3Column3
The Code (pardon the awfulness of...
Hey all,
I'm currently in the process of making Tic Tac Toe, and most of it is working. The way I wrote it (Warning: It's written in a god-awful manage) is with
9 buttons, with the a String...
Hey all,
I'm confused not on how to use the paint() and init() method in java, but merely how it works. I understand that when the 'Applet' class is inherited, the methods of both the Applet...