I've made a class. Then later i realized that the ideal input for my constructor should be different than the one that i have now, like:
i made:
Constructor( String _s, int[] i)
{
// A lot of code goes here
}
now i want:
Constructor( String _s, ArrayList<Integer> i)
{
// can i just convert the list to array and call the old constructor here?
// How?
// i dont want to repeat the code unnecessarily
}
I think in doing this way to get more flexible and dont have to change the inplementation of first constructor. Of course i can convert those in draw before "feeding" the constructor. Would that be a better choice?
thanks
1