// Arup Guha
// 10/21/2026
// Player class for 10/21 Class Example

public class Player {

	// What I put in my player.
	private String name;
	private boolean offense;
	private int jerseyNum;
	
	// Basic constructor.
	public Player(String n, String position, int number) {
		name = n;
		offense = position.equals("offense");
		jerseyNum = number;
	}
	
	// I needed this...
	public boolean isPlayerName(String myName) {
		return name.equals(myName);
	}
	
	// And this...
	public boolean isOffense() {
		return offense;
	}
	
	// String representation of this player.
	public String toString() {
		String res = "Jersey Number = "+jerseyNum;
		if (offense)
			res = res + " Position: offense ";
		else
			res = res + " Position: defense ";
		return res + " Name: "+name;
	}
}