User Profile

Collapse

Profile Sidebar

Collapse
Buckaroo Banzai
Buckaroo Banzai
Last Activity: Aug 29 '07, 05:41 PM
Joined: Mar 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Buckaroo Banzai
    started a topic Thread - Hare and Tortoise Program
    in Java

    Thread - Hare and Tortoise Program

    Hello, newbie here...

    I'm writing this program but when I click the start button which should initiate either the Hare or the Tortoise, it does not, this is the first time I use threads, so the problem might be the way I'm passing the value.

    can someone please take a look at this code and maybe give me some guidance on what I'm doing wrong.

    Please note there are 3 separate files with the corresponding...
    See more | Go to post

  • Buckaroo Banzai
    started a topic Passing values between multiple classes
    in Java

    Passing values between multiple classes

    Hi,
    I just started learning JAVA and I'm really NOT sure how to manipulate values in different classes.
    for example. I have a class 'class1' which updates some variables for its own use.
    then I have another class 'class2' which should take the result of the computation in 'class1' and use that value to perform some other operations.

    I then have the main program file in a separate file that returns the result of...
    See more | Go to post

  • Buckaroo Banzai
    started a topic Update Procedure.. for two tables

    Update Procedure.. for two tables

    Hi,
    I was wondering if it is possible to update two columns in two different tables.
    I'm creating a procedure, but it does not seems to work, and I cannot find any references which says that this is allowed.

    below is my proc.

    create or replace procedure enter(
    user IN customers.useri d%type,
    dept IN department.dept name%type )
    AS
    begin
    update customers, department
    ...
    See more | Go to post

  • Buckaroo Banzai
    replied to Random Number in While Loop
    in C
    Thank you Ganon11, this did it...
    I've looked everywhere for this...
    Now I can run my loop without any pauses and it works great.

    thanks a lot..
    BB...
    See more | Go to post

    Leave a comment:


  • Buckaroo Banzai
    started a topic Random Number in While Loop
    in C

    Random Number in While Loop

    Hi,
    I'm trying to generate 3 random numbers inside a while loop.
    The problem I encountered is that I always get the same 3 numbers even after I reseed the number using srand((unsigned )time(NULL));

    while (J < 3)
    {
    srand((unsigned )time(NULL)); //Seed the random number generator.
    int Rand1 = rand() % 100 + 1;

    srand((unsigned )time(NULL));...
    See more | Go to post
No activity results to display
Show More
Working...