最近对这两个问题比较懵逼,关于List和ArrayList.List<String> list = new ArrayList<String>(); 好了,先搞明白List 和 ArrayList吧. List是一个接口,是Collection接口的一个子接口,是一个有序的集合. ArrayList是List的一个实现类,可以实现数组大小的可变,可以很方便的进行增加和删减数组内元素的操作. List<NameValuePair> paraList = new Array
Write a function that takes a string as input and reverse only the vowels(元音字母) of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s = "leetcode", return "leotcede". Note:The vowels does not i