I am a relative beginner to java and have a question regarding Array Lists.I have read many books in my efforts to learn java 8 but none of them can answer my question completely.
I am trying to store on a HDD information of strings using an arraylist but cannot see how to store a multidimensional array of strings of 6 columns but over time steadily increasing rows. Eventually I will need to store on the HDD a sort of database that can be cross referenced against another part of the program.
Is this possible with and array-list and if so what would be the correct syntax. Failing this can any one suggest an alternative that a beginner could handle.
I worry when I see people using multiple arrays; you should be able to create some sort of class which has six fields for the Strings. You can make the objects immutable quite easily and also make your class implement Serializable. Remember Strings already implement Serializable.
A wop bop a lu bop a womp bam boom! Tiny ad:
how do I do my own kindle-like thing - without amazon