Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Can you please review my code and see why I’m getting an error

Can you please review my code and see why I’m getting an error (out

of range)?  Attached is four separate classes, a word doc for the project instructions, and a text file that is being read in.

/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package project1;/**** @author Waylon*/public class Employee {private String name;private int salary;// Employee constructorpublic Employee (String name, int salary) {this.name = name;this.salary = salary;}// method to return annual salarypublic int annualSalary() {return salary * 12;}// method to return employee information, i.e., name and monthly salary@Overridepublic String toString() {return “\tName:” + name + “\tMonthly Salary:” + salary;}public int getSalary() {return salary;}public String getName() {return name;}}
Background image of page 1
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"