JAVA - Create variable names using a loop?
- by SeerUK
Hi, first time poster, long time reader so be gentle with me :)
See the following code which works to generate me timestamps for the beginning and end of every month in a financial year.
int year = 2010;
// Financial year runs from Sept-Aug so earlyMonths are those where year = FY-1 and lateMonths are those where year = FY
int[] earlyMonths = {8,…