|
It is currently Sat Nov 23, 2024 7:39 am
|
Author |
Message |
ElevenBravo
King
Joined: Wed Apr 16, 2003 2:18 pm Posts: 1976 Location: Sexy Town
|
mmm irish cream mocha....
_________________ Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
|
Thu Mar 24, 2005 3:14 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
I remember when i used to post stuff like that on a highly technical thread that i didnt understand.
Satis ended up knocking off something like 500 post count.
Ah the old days.
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Fri Mar 25, 2005 12:14 pm |
|
|
ElevenBravo
King
Joined: Wed Apr 16, 2003 2:18 pm Posts: 1976 Location: Sexy Town
|
Man, thats tough, I guess its a good thing I dont give a poop about my post count.
<-- Drinking some java right now.
_________________ Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
|
Sun Mar 27, 2005 8:00 am |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
|
Wed Mar 22, 2006 6:53 pm |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
You do not have the required permissions to view the files attached to this post.
|
Thu Mar 23, 2006 10:11 am |
|
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Thu Mar 23, 2006 10:35 am |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Thu Mar 23, 2006 10:45 am |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
You do not have the required permissions to view the files attached to this post.
|
Thu Mar 23, 2006 12:04 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
|
Thu Mar 23, 2006 12:28 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
Elementary question:
What is x?
int[][] ex2Arr = {{2,1,4,6,8},{2,1,4,6,8}}
int i = 0;
x = ex2Arr[i].length;
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Thu Mar 23, 2006 4:05 pm |
|
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
x=5.
doesn't the .length method give you the number of elements in the array? And since i is defined as being 0, it references the first array of the array, which is 5 elements big.
right? I don't know java, but this looks an awful lot like other programming languages I've used (kinda a fusion of javascript and visual basic .net and shit)
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Thu Mar 23, 2006 4:35 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
Nah, its mainly just "shit".
You'd probably find Java a piece of piss Sat. I used to like it, now i fucking hate it with a vengeance. Its too low-level for me. I like to be on top!
You do not have the required permissions to view the files attached to this post.
|
Thu Mar 23, 2006 4:39 pm |
|
|
RB
Emperor
Joined: Wed Apr 16, 2003 1:25 am Posts: 2560
|
1. Yes. But function do not get actually the whole array but the pointer to it.
2. Not beyound loops exactly. You can use them at any place in the function after the place where they are declared.
3. The value -1 is just an value which is not correct value of an index. In principle you could use -2, -3 etc. If function does not find any passing column, this parameter (it is return parameter as well) will stay set on -1 and the function will return it, so you can know that matrix consist of even numbers only. You can use one new boolean variable, which would be initialized to false on the start of the function, and assigned to true, when the first colmun with odd numbers is found.
4. Yes
5. Yes
6. If you mean, would (mat[0].length = 5) be correct, the answer is no. The variable length is declared as *final* which means that it cannot be changed after it is once assigned.
7. Nope... i is still just an counter.
8. The code int n = mostOddCol(ex2Arr); does the same as
int n;
n = mostOddCol(ex2Arr);
- So, the variable n will be declared.
- After that it will be assigned to a returned value from mostOddCol(ex2Arr).
- mostOddCol(ex2Arr) is the call of method mostOddCol with one argument - 2D array ex2Arr.
Fine manual: http://java.sun.com/docs/books/tutorial/java/TOC.html
_________________ ++
|
Thu Mar 23, 2006 6:22 pm |
|
|
derf
Minor Diety
Joined: Fri Apr 11, 2003 2:17 pm Posts: 7721 Location: Centre of the sun
|
Now im screwing around with inheritance. Im getting my head around it, slowly, but (hopefully) surely.
Any tips you got to offer GFree?
_________________ "Well a very, very hevate, ah, heavy duh burtation tonight. We had a very derrist derrison, bite, let's go ahead and terrist teysond those fullabit who have the pit." - Serene Branson
|
Thu Apr 20, 2006 2:25 pm |
|
|
Satis
Felix Rex
Joined: Fri Mar 28, 2003 6:01 pm Posts: 16662 Location: On a slope
|
children inherit from parents
parents don't inherit from children
_________________ They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.
|
Thu Apr 20, 2006 2:36 pm |
|
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|