sentence1: The second method is written when the number of elements in each line is the same and is known at the time of using the program .
sentence2: The second method is used when the number of elements in each line is the same and is known at the time the program was written .