package com.sitdh.master.eaa.main;

public class B5Professor {
	
	public String name;
	
	public String lastname;
	
	public String room;
	
	public String officehour;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public String getOfficehour() {
		return officehour;
	}

	public void setOfficehour(String officehour) {
		this.officehour = officehour;
	}

}

package com.sitdh.master.eaa.main;

public class B5Professor {
	
	public String name;
	
	public String lastname;
	
	public String room;
	
	public String officeHour;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}

	public String getOfficeHour() {
		return officeHour;
	}

	public void setOfficeHour(String officeHour) {
		this.officeHour = officeHour;
	}

}

Change method name