This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package collection; | |
import java.util.*; | |
public class Arraylistdemo { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
ArrayList arr =new ArrayList(); | |
arr.add("vivek"); | |
arr.add("sumit"); | |
arr.add("vikash"); |