public class Weapons
{
private String[] weaponType;
public Weapons()
{
this.weaponType[] = {"Melee", "Range", "Magic"};
}
}
It's giving me 2 errors.
Syntax error, insert ";" to complete BlockStatements
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
How do I properly assign the elements inside the array from an instance variable of arrays?