recycling : Java Glossary

go to home page R words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish 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) ©1996-2009 Roedy Green, Canadian Mind Products
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 Poly ethylene 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 Poly ethylene 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.

Disposing of CDs and DVDs

Be careful discarding DVDs. They may contain passwords, bank accounts, credit card info, identity theft info…
There are a number of ways of disposing of CDs and DVDs:
  1. Use rewritable CDs and DVRs. You recycle them by reformatting them. When you by them, mark them in a way that you can rapidly tell them apart from write-once discs.
  2. Use a $40.00 USD DVD destroyer. It perforates disc with numerous little holes, making a loud pop every time it destroys a CD. There is an USB-powered one for $29.00 USD that breaks up the entire surface in 5 seconds.
  3. A $16.00 USD compact disc eraser will make a disc unreadable by deeply scoring it multiple times. I suspect the C.I.A. could extract data, but the discs will certainly not read in an ordinary player.
  4. A heavy duty shredder will destroy them. You might buy a heavy duty $200.00 CAD shredder from a stationery store and shred them one by one yourself, and perhaps do a favour by shredding the DVDs and CDs from your friends and family. Wear safety glasses and gloves. CDs and DVDs are brittle and shatter into glass-like shards. The remains go to land fill. Recyclers accept whole discs only.
  5. You can ask a friend who owns a heavy duty shredder if you can use his.
  6. A pair of tin snips will cut them. This is tedious and hard or your hands if you do more than a dozen or so at a sitting. For extra safety, discard the remains into two different locations.
  7. You can incinerate them.
  8. The Shred-it people will come to your house and pick them up for $150.00 CAD and incinerate them. That covers 6 banker’s boxes full. Shredding paper is cheaper. You get 15 boxes shredded for the same amount. Unfortunately their shedders don’t handle DVDs and CDs. You might consider collecting CDs and DVDs from others to make up the minimum amount and share the cost.
  9. RecyclingCDs or CD Recycling center will recycle your discs for free by taking your old CDs and DVDs and turn them into clocks. They will scratch the surfaces of the CDs before making them into clocks.
  10. I am told you can melt them in a microwave, though I have never tried it and I won’t either. Who knows what fumes will come off them!
  11. Do not try to destroy a CD or DVD with a hammer. It will shatter like glass after the three layers separate.
CD
CD Recycling center
Compact Disc Eraser
DVD
garbage collection
object pooling
Recall: shredding CDs and DVDs
RecyclingCDs: recycles old CD and DVDs
Return-It: recycling old computers, monitors, TVs
Shred-it: incinerating CDs and DVDs

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/recycling.html J:\mindprod\jgloss\recycling.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.108]
You are visitor number 8,698.