i don't quite understand what you're asking but if you just initialize the fields as an array of 30 or maybe a 2d array of 15/2 then you could just iterate through and collect the data (using field.getText()) as opposed to having a shit tonne of .getText() methods.