Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 4th, 2008, 10:03 PM   #11
dimlyBright
Newbie
 
dimlyBright's Avatar
 
Join Date: Feb 2008
Posts: 10
Rep Power: 0 dimlyBright is on a distinguished road
Re: Patterned returns with Math.random()

src.zip

Found the error. RNG not to blame! Although I fixed it, I can't see why it should matter.
Assume I have a class "Left" with a method "Down" that requires an array to be passed to it.
In the main method an object is made.
Left useLeft = new Left()
When I use the object (i.e.
useLeft.Down(arrayName);
)
Why is that different than if I made the array in the class "Left" and I did not bother to pass it to the method via the object, I just passed it to the method from within the class?
dimlyBright is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with assignment code returns no answer backstabber C++ 9 Dec 21st, 2006 7:46 AM
Futurama Returns!!! Indigno Coder's Corner Lounge 27 Jul 22nd, 2006 2:48 PM
Stash returns... Malloc problem? Soulstorm C++ 18 May 27th, 2006 2:09 AM
Function that returns occurances of substring in string. conbrio C 7 Jul 1st, 2005 6:51 PM
Count lenght of list inside list, how to print returns dezza Python 5 Apr 5th, 2005 12:16 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:55 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC