This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
whenever we want to have some control over the number of objects to be created for a class.
in such cases we create a private constructor, and static method in that class. and we call the private constructor from that static method. we can have count of objects created for that class using a static variable.
Pattern p = Patten.compile("\\d"); Pattern p = Patten.compile("[a-s]"); here the patten object is created by the Pattern class, based on the given input..