>>> where's the bug in my java source code ? <<<
heyyo fellow solo learners ! been banging my keyboard for coding a simple java-based text-based rpg ... can anyone help me find the bugs in this source code ? - ph4n70m ------------------------------------------------------------------------------------------- public class Enemy { private String name; private String type; private int health; private int level; private int attack; Enemy() { this.setName(); this.setType(); } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setType(String type) { this.type = type; } public String getType() { return type; } public static void main(String [] args) { Enemy enemy = new Enemy("Ratto","Rat"); System.out.println(enemy.getName()); System.out.println(enemy.getType()); } } -------------------------------------------------------------------------------------------