Question: Below is a Screenshot of all the code within this Java assignment, I need help understanding how to make the UML diagram for this assignment,
Below is a Screenshot of all the code within this Java assignment, I need help understanding how to make the UML diagram for this assignment, it must have the EXACT names for the parameters and methods. Any help would be much appreciated, thanks in advance.

public class Assign84 1 ( public class Weapon public static void main(String [ args) f Weapon sword new Weapon); System.out.println(sword); System.out.println("Dofault nane: Vswond.getName)"\); System.out.println("Default danage:Sword.getDamage); private String nane; private int damage; public Weapon) f this.name - this.dama sword.setName ("Barney the Ineffective"); sword.setDamage(2); System.out.printin("New name: \ sword.g+ \"); System.out.println("New damage sword.getDamage)) public eapon(String name, int damage) this.nanenane this.damage danage; Weapon coolSword new Weapon("Glandring the Foe-Hammer", 1500) System.out.printin("Cool name: \+ coolSword.getName"); System.out.println("Cool damag:caalSword.gotDamag); public String getlame() [ return nane; public int eetDanage) return danago; heapon.printWeapon sword); Weapon.printheapon(coolsword) Weapon.printweapon(null); public void setNane (String nane) this.name -name; public void setDamage(int damage) ( this.damage danage; public static void printweapon(Weapon weapon) if (weaponnul1) 1 System. out . printin (weapon . getName( )) ; System.out.printin("No weapon")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
