Added LGPL v3 copying notices.
Added Java code.