The following sections describe the solutions to the preceding problems. Remember that there usually isn't a single correct way to solve a particular problem. Also, remember that the explanations that are shown here only include the most interesting and important details that are needed to solve the problems. You can download the example solutions to view additional details and experiment with the programs from https://github.com/PacktPublishing/Java-Coding-Problems.
Solutions
149. Inspecting packages
The java.lang.Package class is our main focus when we need to obtain information about a specific package. Using this class, we can find out the package's name, the vendor that implemented this package, its title, the...