I have a 'double' array that has a length of 10. When I first initiate the array, all the values inside are '0.0' until I start replacing them. Once I replace all the values with something besides 0, how would I go about making it so if I decided to 'add' another number to the array, it would start back at the beginning at index 0 and do the process over again, replacing the old numbers in order.
Working on a Bank Account transaction program. So, you have an Array of 10 transactions, all starting at 0.0. Then as you start to withdraw or deposit money, it "logs" into each slot the amount withdrawn/deposited. Once you do your 11th transaction, it is suppose to go back and replace the first transaction, the 12th replaces the 2nd, etc.
Edit: Not allowed to use Array Lists. Must be a normal static-lengthed Array.