Next we merge the two main class programs for the former post into a single application. After execution of this package paths, xml filenames and accompanying content are printed to our NetBeans console.
Earlier I recommended Java beginners to save the main programs in their Hello World project. It’s time to leave this one project approach. As a Java-for-testers beginners you better start a new project for every single problem you encounter. You can always copy the core of your solution to the package where you need it not ‘contaminating’ the project you are actually working on with maybe useless code. Which allows me referring Occam’s razor blade. Today his medieval approach is more useful to us as agile testers in stripping the ‘borrowed’ code than for instance ISQTB. Applying his blade probably gives you the leanest code you need to perform your job. Analysing xml files for example.