I have a global variable, something like this:
Now... I have a Comisiones array, declared in the main, something like this:
That means each Comisiones object will have its own monto, max, and min variables... but what if I want to use these variables for all the array (for example min being the minimal price for all the objects)... what do I do to solve this?
Thanks in advance n.n!
Code:
public class Comisiones {
double monto,max=0,min=0
Code:
public static void main(String[] args) {
Comisiones x[]=new Comisiones[20];
Thanks in advance n.n!
Comment