foreach循环及Map遍历

import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.junit.Test;
//增强for循环
public class Demo3 {
	//数组
	@Test    //ctrl+1
	public void test1(){
		String s[] = {"a","b","c"};
		for(int i=0;i

你可能感兴趣的:(Java)