Log4j Jump Start <font size=-2><a href=http://www.lifemichael.com/en/?page_id=73 target=_blank>PRO</a></font>

Log4j is an open source project developed and maintained by Apache. It is part of a bigger open source project known as the Apache Logging Services. The following code sample shows how to use Log4j in its basic configuration. package il.ac.hit.samples; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; public class SimpleLoop { static Logger logger = Logger.getLogger(“SimpleLoop”); public […]

Generics’ Bounded Wild Cards in Java <font size=-2><a href=http://www.lifemichael.com/en/acronyms/ target=_blank>PRO</a></font>

When using a bounded wild card we can limit the parametric type as if we were saying that it can be any type as long as it extends or implements a specific type we specify. package il.ac.hit.samples; import java.util.Iterator; import java.util.Vector; public class BoundedWildCardSample { public static double calculateTotal(Vector<? extends Shape> vicy) { double sum […]