If I was to use JOptionPane to get user input, with the opportunity to type exit when the user has finished entering their data, And I wanted to store the data they had input in an array would I have to use a dynamic array? (As I would need the array to grow in size to accommodate the number of user input items to initialise the size of the array).
If you want to implement this yourself, it looks like you are on the right track. In that case, you don't need "import java.util.ArrayList". Alternatively, you can use ArrayList which already does this magic for you without any effort on your part.