In C# you can do this

Code:
private int iCoins;
public int Coins
{
	Get
	{
		return this.iCoins;
	}
	Set
	{
		this.iCoins = value;
	}
}
is there a way to do something like this in java