Alright thanks for that guys. The reason i was going to use an arraylist was that later on im gonna have to make similar lists for indivdual amino acids which include ints and i thought it would be better to use arraylists which could handle both strings and integers. For example:-
the amino acid Alanine, just A for short would have a list like this.
A[142,83,66,0.06,0.076,0.035,0.058]
(If you're interested about what those numbers are, the first one is the P(a) which is the propensity of this particular ammino acid to participate in alpha helices. The next is P(b), beta sheets and it goes on like that.
I plan to have 20 of these lists, one for each of the most common amino acids which i want to mantipulate to pick out certain values for formulas.
Could i just declare each list at the start of the file? ie
ArrayList A = new ArrayList
ArrayList R = new ArrayList
etc..
A[142,83,66,0.06,0.076,0.035,0.058]
R[98,93,95,0.07,0.106,0.099,0.085]
etc..
then access the different values as i wish with if statements?
if(i.equals("A")) {
x = A[1];
}
which would hopefully set the x value to 142, to be used in a later calulation.
What do you guys think?