recycling : Java Glossary
home R words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
recycling
The usual Java programming style creates objects in profusion then almost immediately abandons them. This creates need for frequent garbage collection. If it does not disturb your programming logic, sometimes it makes sense to recycle Objects. You might reuse the same StringBuilder over and over by using the setLength( 0 ). Realise though that the internal buffer will grow to the size of the biggest string you ever composed. Here is a wrapper class I use to do that:
You can reuse an ArrayList with ArrayList.clear().

The drawback is the runtime won’t warn you if you reuse an object without clearing it first. If you always get a new on, NullPointerException will warn you if you fail to allocate.

Plastic Recycling

Plastics are often marked with a Resin Code to indicate how they should be recycled.
Resin Plastic Recycling Codes
Resin
Code
Technical Name Typical Uses
resin recycling code 1 PETE, Polyethylene Terephthalate soft drink bottles, deli trays, Mylar film, clear shampoo bottles, mouthwash bottles.
resin recycling code 2 HDPE, High-Density Polyethylene Tupperware, milk jugs, dishwashing detergent containers, juice containers, opaque shampoo bottles, oven cleaner bottles, insecticide bottles, yogurt containers
resin recycling code 3 PVC, Polyvinyl Chloride plumbing pipes, construction materials, vinyl records, opaque shampoo bottles,
resin recycling code 4 LDPE, Low-Density Polyethylene grocery bags, dry cleaning bags, aquarium tubing.
resin recycling code 5 PP, Polypropylene appliance parts, Tic Tac hinge lids, drinking glasses, mustard squeeze bottles, margarine containers, pudding containers
resin recycling code 6 PS, Polystyrene styrofoam cups.
resin recycling code 7 Other plastics, including acrylic,
polycarbonate, nylon, Kevlar, fiberglass.
compact discs, DVDs.

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 5,767. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/recycling.html J:\mindprod\jgloss\recycling.html