I have visited many references regarding the simple question - how to declare a property under Android Java. All of the examples I found do not eliminate compiler's errors.. Please, help me to save my time, give me the analog of the C# properties but under Android Java.
Class A {
protected bool bField = false;
public bool BField { get { return bField; } set { bField = value; }
// and
public bool AField { get; set; }
}
Thanks