Tuesday, January 25, 2011

Reflection 1/16

This week we worked on Arrays. I did very poorly on the array quiz. I understand the basic concept of arrays, that they store information at locations. This kind of reminded me of my biology class, where we learn about the locus of genes of chromosome. In a joking way:

int[] chromosome = {1,2,3,4,5,6,7,8,9,0};

Say the gene for blue eyes is the number 2. This number is stored at location 1 on the chromosome (array).

out.print(chromosome[1]); //expresses the gene

So then it would print:
2(expressing blue eyes)

That's all for this week.

-Frank

No comments:

Post a Comment