Search:

Type: Posts; User: sp11k3t3ht3rd

Search: Search took 0.09 seconds.

  1. Re: Getting a string value from within a method in another class

    The if statement is supposed to return false sometimes because the computer randomly selects on of the values (1,1) or (1,2) or (1,3) and so on.

    This is an example of me looping the run.


    ...
  2. Re: Getting a string value from within a method in another class

    Yeah that makes sense. I used the first one so now the line of code looks like:


    if(computer.compChoice.equals("(1,1)"))

    But I have another question. Now im trying to check if the String...
  3. Getting a string value from within a method in another class

    Okay, I'm kind of new to Java but I still know some stuff. I'm trying to get a string value from a separate class that is within a method in that class. I can't figure it out! I'm making a...
Results 1 to 3 of 3