I just want \"Jan Expenditure\" to appear however only expenditure comes out. How do I do it? Jan is from my monthsArrays. Is there anything missing?
import java
You have a typical +/-1 error in your code.
Your monthsArray has an empty String at position 0 and you take the displayed String from month -1. Simply entering 2 and getting "Jan expenditure (max 10 items)" as a result should have been a good hint.