1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import java.util.ArrayList; public class Test { public static void main(String[] args) { ArrayList<String> pitches = new ArrayList<String>(); pitches.add("138"); pitches.add("129"); pitches.add("142"); System.out.println(pitches.get(1)); System.out.println(pitches.size()); System.out.println(pitches.contains("142")); System.out.println(pitches.remove("129")); System.out.println(pitches.size()); System.out.println(pitches.remove(0)); } } | cs |
'Study > Java Programming' 카테고리의 다른 글
Deleting Duplicate Element Using HashSet (0) | 2019.04.28 |
---|---|
Java String Instance Practice Example #1 (0) | 2019.04.28 |
Java programming practice; Tax (0) | 2018.10.06 |
Java Programming Practice #1 (0) | 2018.10.06 |
[Java Programming] Java return, 자바 리턴값 배우기 (0) | 2018.09.09 |