Search:

Type: Posts; User: Jakesta42

Search: Search took 0.17 seconds.

  1. Replies
    2
    Views
    561

    Re: How to sort alphabetically?

    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...
  2. Replies
    3
    Views
    1,026

    Re: Logic of Recursion in General

    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,...
  3. Replies
    3
    Views
    1,026

    Logic of Recursion in General

    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...
  4. Replies
    19
    Views
    1,020

    Re: Tic Tac Toe ActionPerformed Issue

    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...
  5. Replies
    19
    Views
    1,020

    Re: Tic Tac Toe ActionPerformed Issue

    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...
  6. Replies
    19
    Views
    1,020

    Re: Tic Tac Toe ActionPerformed Issue

    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,...
  7. Replies
    19
    Views
    1,020

    Re: Tic Tac Toe ActionPerformed Issue

    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.
    ...
  8. Replies
    19
    Views
    1,020

    Re: Tic Tac Toe ActionPerformed Issue

    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...
  9. Replies
    19
    Views
    1,020

    Tic Tac Toe ActionPerformed Issue

    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...
  10. Inheriting Applet and paint() GUI Method Logic?

    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...
Results 1 to 10 of 10