title: For Each block in Specific Context in Java
body: <p>I am an eighth grader on a mission to create an application in Java that finds the point where two virtual lines meet, given the slope and y-intercept of the two lines.  As it stands right now, I have two arrays (both with long values) that store the y values for the given x values (x = 0, 1, 2, etc).  Now I need to figure out how to create a for each block (you know, the one with the colon in it) to check if the y value in the first array is equal to its counterpart in the other array.  How do I do this?</p>