added Java code to create weapon object and do tank combat