This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
And minification is a bit more than just removing whitespaces. First, only the whitespace that don't effect the functionality of a program is removed -- as removing the whitesppace in a string to be printed does affect the program. Second, comments must also be removed -- as removing carriage returns will chain the comments otherwise. This can get complex if you take into account comments within comments (for commenting out code), and commented out code with quotes with whitespaces. etc. etc. etc.