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...
User Profile
Collapse
-
Thread - Hare and Tortoise Program
-
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... -
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
... -
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... -
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));...
No activity results to display
Show More
Leave a comment: