Search:

Type: Posts; User: DusteroftheCentury

Search: Search took 0.13 seconds.

  1. [SOLVED] Re: (Simple) How to use an if statement to respond to random integers

    Thanks Norm that worked like a charm! ;)

    Also thanks for the definition, I hat not being able to use proper terms.

    Thanks so much for the simple explanation!

    -Duster
  2. [SOLVED] Re: (Simple) How to use an if statement to respond to random integers

    ^this

    Here is the peice of code Im talking about:


    public void actionPerformed(ActionEvent e)
    {
    if (e.getSource() == button1);
    {
    int low = 1;
  3. [SOLVED] Re: (Simple) How to use an if statement to respond to random integers

    Thanks guys.

    Tjstretches link did it for me. Thanks for helping :)

    Also for a related issue,(Part of same code) how do I change the text of a JLabel when I am in a different block of code? It...
  4. [SOLVED] (Simple) How to use an if statement to respond to random integers

    Hello,

    I have a simple question. How do I use an if statement to check and respond to a randomly generated integer? For instance if the number is 4, it would print "Chicken"
    but for 5 it would...
Results 1 to 4 of 4