Question: Can you give me the List Class Methods?
Answer: Sr. no:1
Method name: void add(String item)
Description:  It adds the specified item into the end of scrolling list.

Sr. no:2
Method name: void add(String item, int index)
Description:  It adds the specified item into list at the given index position.

Sr. no:3
Method name: void addActionListener(ActionListener l)
Description: It adds the specified action listener to receive action events from list.

Sr. no:4
Method name:  void addItemListener(ItemListener l)
Description: It adds specified item listener to receive item events from list.

Sr. no:5
Method name: void addNotify()
Description: It creates peer of list.

Sr. no:6
Method name: void deselect(int index)
Description: It deselects the item at given index position.

Sr. no:7
Method name: AccessibleContext getAccessibleContext()
Description: It fetches the accessible context related to the list.

Sr. no:8
Method name: ActionListener[] getActionListeners()
Description: It returns an array of action listeners registered on the list.

Sr. no:9
Method name: String getItem(int index)
Description: It fetches the item related to given index position.

Sr. no:10
Method name: int getItemCount()
Description: It gets the count/number of items in the list.

Sr. no:11
Method name: ItemListener[] getItemListeners()
Description: It returns an array of item listeners registered on the list.

Sr. no:12
Method name: String[] getItems()
Description: It fetched the items from the list.

Sr. no:13
Method name:Dimension getMinimumSize()
Description: It gets the minimum size of a scrolling list.

Sr. no:14
Method name: Dimension getMinimumSize(int rows)
Description:  It gets the minimum size of a list with given number of rows.

Sr. no:15
Method name: Dimension getPreferredSize()
Description: It gets the preferred size of list.

Sr. no:16
Method name: Dimension getPreferredSize(int rows)
Description: It gets the preferred size of list with given number of rows.

Sr. no:17
Method name: int getRows()
Description: It fetches the count of visible rows in the list.

Sr. no:18
Method name: int getSelectedIndex()
Description: It fetches the index of selected item of list.

Sr. no:19
Method name: int[] getSelectedIndexes()
Description: It gets the selected indices of the list.

Sr. no:20
Method name: String getSelectedItem()
Description: It gets the selected item on the list.

Sr. no:21
Method name:String[] getSelectedItems()
Description: It gets the selected items on the list.

Sr. no:22
Method name: Object[] getSelectedObjects()
Description:  It gets the selected items on scrolling list in array of objects.

Sr. no:23
Method name: int getVisibleIndex()
Description: It gets the index of an item which was made visible by method makeVisible()

Sr. no:24
Method name:void makeVisible(int index)
Description:  It makes the item at given index visible.

Sr. no:25
Method name: boolean isIndexSelected(int index)
Description:  It returns true if given item in the list is selected.

Sr. no:26
Method name:  boolean isMultipleMode()
Description: It returns the true if list allows multiple selections.

Sr. no:27
Method name: protected String paramString()
Description: It returns parameter string representing state of the scrolling list.

Sr. no:28
Method name: protected void processActionEvent(ActionEvent e)
Description: It process the action events occurring on list by dispatching them to a registered ActionListener object.

Sr. no:29
Method name: protected void processEvent(AWTEvent e)
Description: It process the events on scrolling list.

Sr. no:30
Method name:protected void processItemEvent(ItemEvent e)
Description: It process the item events occurring on list by dispatching them to a registered ItemListener object.

Sr. no:31
Method name: void removeActionListener(ActionListener l)
Description:  It removes specified action listener. Thus it doesn't receive further action events from the list.

Sr. no:32
Method name: void removeItemListener(ItemListener l)
Description: It removes specified item listener. Thus it doesn't receive further action events from the list.

Sr. no:33
Method name: void remove(int position)
Description: It removes the item at given index position from the list.

Sr. no:34
Method name:void remove(String item)
Description:  It removes the first occurrence of an item from list.

Sr. no:35
Method name: void removeAll()
Description: It removes all the items from the list.

Sr. no:36
Method name: void replaceItem(String newVal, int index)
Description: It replaces the item at the given index in list with the new string specified.

Sr. no:37
Method name: void select(int index)
Description: It selects the item at given index in the list.

Sr. no:38
Method name:void setMultipleMode(boolean b)
Description: It sets the flag which determines whether the list will allow multiple selection or not.

Sr. no:39
Method name:void removeNotify()
Description: It removes the peer of list.