I have a requirement to increment int value. So I have made getter/setter for it and I applied this logic for the increment value of int:
public class MyOrderDet
Why do you not just do?
public void increment() { count++; }
And what is the int parameter to the increment() function for?