Generics make your code more flexible and easier to read, and they help you avoid ClassCastExceptions at runtime. Get started with this introduction to using generics with the Java Collections ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
Event-driven design has been around for quite some time. Within Java, both AWT (Abstract Window Toolkit) and Swing are based on an event model. Java provides the classes EventQueue, AWTEvent, ...
A meta-program is "executed" as the result of template instantiation (therefore, before compiled code is produced). Meta-program results are then compiled and merged into object code, including any ...
When PDL BioPharma's $40 million blood-pressure medicine faced the threat of a generic rival this year, the company pulled out a little-known strategy that critics say helps keep drugs expensive and ...
“When I worked at Cambrex, I learned that generics are kind of boring,” says Kenneth Drew, senior director of North American sales and business development at Flamma, an Italian manufacturer of active ...
float update(float value, float minimum, float maximum) { if(value < minimum) value = minimum; else if(value > maximum) value = maximum; return value; } How can I ...
It was such a simple, brilliant idea. Use the power of Java 5.0 enumerated types to encode details of a data dictionary (attribute name, type, range, units, etc.) and create a type-safe system for ...
About 20% of the 100 most expensive generic drugs -- treatments for HIV, cancer, or multiple sclerosis, for instance -- weren't available at any of five of the most common DTC pharmacies, Hussain ...
Community driven content discussing all aspects of software development from DevOps to design patterns. Software development is one of the most rewarding careers in the world of IT. Java is one of the ...