package com.maxian.test; import java.util.ArrayList; import java.util.List; public class TestList {	// 人才写法	public static void test1(Listlist) {	int i = 0;	try {	for (;;) {	System.out.println(list.get(i));	i++;	}	} catch (IndexOutOfBoundsException e) {	}	}	// 一般写法	public static void test2(Listlist) {	for (String string : list) {	System.out.println(string);	}	}	// 一般写法	public static void test3(Listlist) {	for (int i = 0; i