This code is currently encoded as part of a separate Java class.
public void setSubtotal () { subtotal = Validator.getDouble(sc,"Enter subtotal:", 0, 10000); }
And I want to call him using a different method. I already have an instance of the class, so I can call it, but I'm not sure how to call this method, since it is a void method.
source share