Cambridge Chat (previously New Cambridge Students Entry 2004)

Watch
This discussion is closed.
Camford
Badges: 12
Rep:
?
#18321
Report 14 years ago
#18321
(Original post by Willa)
try discovering why running a procedure on a full list produces different results to running a procedure on half the list and then finishing the list and running the procedure again, when the only thing the procedure does is delete duplicates from the list!
Dude, what are you on about?
0
Willa
Badges: 9
Rep:
?
#18322
Report 14 years ago
#18322
(Original post by Camford)
Dude, what are you on about?
you're not the only one who is wrestling with java at this very moment you know!
0
Camford
Badges: 12
Rep:
?
#18323
Report 14 years ago
#18323
(Original post by Willa)
you're not the only one who is wrestling with java at this very moment you know!
I didn't say I was. I merely stated that fact that I suck at Java and need help. I'm even confused about private and public matters at this moment.
0
Willa
Badges: 9
Rep:
?
#18324
Report 14 years ago
#18324
(Original post by Camford)
I didn't say I was. I merely stated that fact that I suck at Java and need help. I'm even confused about private and public matters at this moment.
awww poor you! The API and Java tutorial are your friends!
0
Camford
Badges: 12
Rep:
?
#18325
Report 14 years ago
#18325
(Original post by Willa)
awww poor you! The API and Java tutorial are your friends!
can't be arsed to read the api... too confusing. Arthur Norman's specification for this thing isn't helping much either. I guess I'll have to leave the difficult part till after the term starts.
0
Steveee
Badges: 5
Rep:
?
#18326
Report 14 years ago
#18326
Nooooo - so many posts to read and no time to do it in. DAMMIT.

I'm not that sad - I'll just not read the posts.
0
Camford
Badges: 12
Rep:
?
#18327
Report 14 years ago
#18327
(Original post by Steveee)
Nooooo - so many posts to read and no time to do it in. DAMMIT.

I'm not that sad - I'll just not read the posts.
There aren't that many funny posts being made recently.

Sorry to hear about your rejection. Good luck with Bristol though. It's a better city than Cambridge in many ways.
0
Willa
Badges: 9
Rep:
?
#18328
Report 14 years ago
#18328
the API is the bible of Java....it makes everything so easy to understand. And for the REALLY basic things, just use the Java Tutorial. Like understanding public and private and how they limit access etc!
0
Steveee
Badges: 5
Rep:
?
#18329
Report 14 years ago
#18329
(Original post by Camford)
There aren't that many funny posts being made recently.
Yeah, considering you seem to be talking about Java.

Pascal all the way! (AS Computing is not worthy of a single UCAS point)
0
Alaric
Badges: 1
Rep:
?
#18330
Report 14 years ago
#18330
(Original post by Willa)
try discovering why running a procedure on a full list produces different results to running a procedure on half the list and then finishing the list and running the procedure again, when the only thing the procedure does is delete duplicates from the list!
Okay, just to check:

1. Have half the list.
2. Run procedure on half the list.
3. Populate second half of list.
4. Run procedure on entire list.
5. Result differs?

Seems like the problem is most likely to be that you need to be definitely running it the second time on the entire list. Is there any particular reason why you'd want it to run the duplicate removal multiple times, is space really an issue?

Incidentally, how are you removing duplicates?

A.
0
Camford
Badges: 12
Rep:
?
#18331
Report 14 years ago
#18331
(Original post by Willa)
the API is the bible of Java....it makes everything so easy to understand. And for the REALLY basic things, just use the Java Tutorial. Like understanding public and private and how they limit access etc!
That's not the part I'm worrying about... it's the "not understanding part of the specification" bit I'm worrying about. I can do quite a bit of this thing, construct necessary classes, doing about 25% of the gui... There's the JPanel's paintComponent, which I've no idea about. There's something about a custom class called Document and a method used to associate a JPanel (or its subclass) with an instance of Document which I also have no idea about. other than that. It's cool.


Actually... nothing for me is "cool" with this piece of work.
0
Willa
Badges: 9
Rep:
?
#18332
Report 14 years ago
#18332
(Original post by Alaric)
Okay, just to check:

1. Have half the list.
2. Run procedure on half the list.
3. Populate second half of list.
4. Run procedure on entire list.
5. Result differs?

Seems like the problem is most likely to be that you need to be definitely running it the second time on the entire list. Is there any particular reason why you'd want it to run the duplicate removal multiple times, is space really an issue?

Incidentally, how are you removing duplicates?

A.

i found the problem in the end. When a duplicate was removed from the list, the indices were automatically decreased by 1 for all following items. However the procedure was using a for loop to go through the items, and so this meant it was skipping an item each time there was a removal of a duplicate. So I just added an "i--" into the code.
0
naelse
Badges: 2
Rep:
?
#18333
Report 14 years ago
#18333
why am i awake?
0
Zarathustra
Badges: 2
Rep:
?
#18334
Report 14 years ago
#18334
(Original post by naelse)
why am i awake?
Sympathy insomnia - kinda like sympathy pains only it keeps you awake rather than hurting

My advice: head down, brace yourself, run into a wall really hard. Sweet :cool:

ZarathustraX
0
Camford
Badges: 12
Rep:
?
#18335
Report 14 years ago
#18335
How do you say "mr incredible" in French? It seems to me to be one of the funniest sound on earth.
0
Camford
Badges: 12
Rep:
?
#18336
Report 14 years ago
#18336
I should either go to bed, or drink large quantities of hot coffee... Not sleeping is not good me... 12 hours to go till dark . I need to get rid of my beard.
0
Camford
Badges: 12
Rep:
?
#18337
Report 14 years ago
#18337
(Original post by Lauren)
you haven't been to sleep yet? oh dear. I've been to sleep and got up and now I'm in work.
I got up at 4pm yesterday... I'm taking this opportunity to adjust my biological clock. I was hoping to get some work done today. But I'm afraid I will only be fit enough to produce garbage for the garbage collector today ...
0
Camford
Badges: 12
Rep:
?
#18338
Report 14 years ago
#18338
Writing too many posts on one page of this thread isn't a good thing. But someone has to keep this place active.
0
Comp_Genius
Badges: 4
Rep:
?
#18339
Report 14 years ago
#18339
(Original post by Camford)
How do you say "mr incredible" in French? It seems to me to be one of the funniest sound on earth.
Monsieur Incredabla
0
Camford
Badges: 12
Rep:
?
#18340
Report 14 years ago
#18340
(Original post by darkenergy)
Monsieur Incredabla
em... doesn't seem to sound like what I heard... /me goes off to watch the film again.
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Have you made your firm and insurance uni choices yet?

Yes (99)
53.8%
Yes, but I want to swap them (14)
7.61%
No, but I know who I want to choose (18)
9.78%
No, I still don't know who I want to choose (46)
25%
I have decided I don't want to go to uni anymore and will not be choosing (7)
3.8%

Watched Threads

View All