[Solved] Algorithm for quantity selection [closed]
You should have a Product class. Each product object has different quantity measures and increment methods. Something like this: public abstract class Product { String quantityMeasure; //You can encapsulate this with a getter public abstract int step (int value); //here you want to increment “value” with different algorithms. } Now you can create different product … Read more