In C I would create a data structure as below:
struct file_data_format
{
char name[8][20];
float amp[8];
int filter[8];
};
extern struct file_data_format f_data;
Then I could read or write this whole structure to a file or memory location.
How would I do this in a class in java?