So i'm kinda new at java (been learning it for only 2 weeks)
So basically, my probleme is that i want to give the user a possibility to somehow change the limitation of the array.
Now i know that it is not possible, as an array is "final", but it's hard to believe that there is no way to change it.
An idea came across my mind though:
Renaming the String for the array.
Example: i have the String abcx, where x would be an integer.
i would then have x=JOptionPane.showInputDialog("Enter a value");
and have abcx be renamed to whatever value the user enters
so if he enter 1, it would be named abc1, if he enters 2, it would be named abc2 etc…
both of my problems are array related, as i want to change the limit of the array