, .. , . List, Set, Map.
- (List)
ArrayList, LinkedList, Vector.
- Vector , .
ArrayList . :
public ArrayList() // public ArrayList(Collection c) //:
public int size() public boolean isEmpty() , public boolean contains(Object elem) , public int indexOf(Object elem) . -1, . public int lastIndexOf(Object elem) , . public Object clone() "" . public Object[] toArray() . public Object get(int index) . public Object set(int index, Object element) . public boolean add(Object o) . public void add(int index, Object element) . public Object remove(int index) . public void clear() . public boolean addAll(Collection c) ( ) . public boolean addAll(int index, Collection c) . protected void removeRange(int fromIndex, int toIndex) ( toIndex).LinkedList.
, ArrayList, , , . LinkedList , ArrayList, , ArrayList, , ArrayList.
.
15)
JList
- JList. JListBox. Box, . . , - . Swing , , JScrollPane. , -, , Java-. JList , . , , . , , , , .
|
|
JList :
JList(ListModel dataModel);JList(java.lang.Object[] listData);JList(java.util.Vector listData);JList()., , "" , , JList. "" , . , . , Vector, . , , - .
JList ( . 1). , JList. AbstractListModel, . getModel , setModel.
16)
, , , . , :
var number = Number(string_value);
var number = string_value - 0;
- . , , - . parseInt() parseFloat(). , , . parseInt() , parseFloat() , . 0x 0X, parseInt() . :
parseInt("3 blind mice"); // 3
parseFloat("3.14 meters"); // 3.14
parseInt("12.34"); // 12
parseInt("0xFF"); // 255
parseInt() , . 2 36. :
parseInt("11", 2); // 3 (1*2 + 1)
parseInt("ff", 16); // 255 (15*16 + 15)
parseInt("zz", 36); // 1295 (35*36 + 35)
parseInt("077", 8); // 63 (7*8 + 7)
parseInt("077", 10); // 77 (7*10 + 7)
parseInt() parseFloat() , NaN.
parseInt("eleven"); // NaN
parseFloat("$72.47"); // NaN