Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

JAVA

Name: Anonymous 2007-09-12 9:23 ID:J6AeckUE

Hey guys, i need help with serialization and collections. Can you help me out?

Name: Anonymous 2007-09-12 9:28 ID:FwKReFJr

Yes.  But will we?

Name: Anonymous 2007-09-12 9:30 ID:J6AeckUE

I would help you guys out if i could. I always deliver whenever the situation allows me to.

Just give me some tips about them both, i will find a way to reward you guys. With cool things, not DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS and etc.

Name: Anonymous 2007-09-12 9:33 ID:FwKReFJr

PROTIP:  One turns objects into bytes, the other holds objects and allows for iteration.

Name: Anonymous 2007-09-12 9:36 ID:J6AeckUE

I guess that asking for more (i mean, some code blocks) wouldn´t mean you´d deliver, aight?

Name: Anonymous 2007-09-12 9:41 ID:Heaven

`lol´

Name: Anonymous 2007-09-12 9:43 ID:J6AeckUE

sage =\

Name: Anonymous 2007-09-12 9:55 ID:y8naYR2r

Collection c = new ArrayList();

That is a collection right there.

ObjectOutput oo = new ObjectOutputStream(new FileOutputStream("/home/hitler/srslization"));
oo.writeObject(c);
oo.close();

And that's how you serialize.

Name: Anonymous 2007-09-12 10:06 ID:J6AeckUE

its quite shallow, but, it´s something already. can you help me with this one?

so i have to load a truck, and there are 3 different types of loads: boxes, liquids and some other shit i can´t remember the name.
i must load the content to a registered truck i have, and it must follow these rules
a truck type must be loaded with it´s corresponding load type (boxes in a chest, liquids in a tank, shit in a stuff)

the ammount loaded must be allocated to a truck that has the closest capacity to it (which means, if i will load 100 of liquids, the best choice and THE choice must be the truck that can load at least 100, but it´s closer to that value. (aka, not a 500 load truck, but a 200 load truck would do it)

the trucks capacity must be lowered by the ammount just loaded

the load instances must be saved in the truck´s instance, through a collection


Name: Anonymous 2007-09-12 10:14 ID:TLpee3Dh

>>9
What course is this? ``ENTERPRISE Asshattery 101''?

Name: Anonymous 2007-09-12 10:16 ID:FwKReFJr

>>10
More like ENTERPRISE Asshattery 93 hur hur

Also, pee 3D in your ID.

Name: Anonymous 2007-09-12 10:51 ID:/MrvS4Ds

>>9
I'm new to functional programming, but I can already tell that you get your answer by filtering out trucks that don't carry your load type, then by trucks that are strictly below the load capacity, and then reduce by the min function.

Name: Anonymous 2007-09-12 10:54 ID:Heaven

>>9
What's the difficulty there? That's really no rocket science.

Name: Anonymous 2007-09-12 11:02 ID:Heaven

>>13
logistics is difficult too

Name: Anonymous 2007-09-12 12:22 ID:Heaven

>>9
Forget it. It's NP complete.

Name: Anonymous 2007-09-12 12:36 ID:Heaven

>>15

(  ____ \|\     /|(  ____ \| \    /\  |\     /|(  ___  )|\     /|
| (    \/| )   ( || (    \/|  \  / /  ( \   / )| (   ) || )   ( |
| (__    | |   | || |      |  (_/ /    \ (_) / | |   | || |   | |
|  __)   | |   | || |      |   _ (      \   /  | |   | || |   | |
| (      | |   | || |      |  ( \ \      ) (   | |   | || |   | |
| )      | (___) || (____/\|  /  \ \     | |   | (___) || (___) |
|/       (_______)(_______/|_/    \/     \_/   (_______)(_______)

Name: Anonymous 2009-01-14 12:22

LISP

Name: Anonymous 2009-08-17 0:48

Lain.

Name: Anonymous 2010-12-17 1:36

Erika once told me that Xarn is a bad boyfriend

Name: Anonymous 2010-12-24 9:36

Name: Anonymous 2011-02-02 23:50

Name: Anonymous 2011-02-18 14:05

<-- check 'em

Don't change these.
Name: Email:
Entire Thread Thread List