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

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 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



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