摘要:
Map接口中的常用方法 public V put(K key, V value) : 把指定的键与指定的值添加到Map集合中。 public V remove(Object key) : 把指定的键 所对应的键值对元素 在Map集合中删除,返回被删除元素的 值。 public V get(Objec 阅读全文
摘要:
常用方法: public int length () :返回此字符串的长度 public String concat (String str) :将指定的字符串连接到该字符串的末尾。 public char charAt (int index) :返回指定索引处的 char值。 public int 阅读全文
摘要:
ArrayList集合 可以看做是存储数据的容器-动态数组 基本格式: ArrayList list = new ArrayList(); 表示泛型 方法: public boolean add(E e) public E remove(int index) public E get(int ind 阅读全文