Access ArrayList from another class
When ArrayList is needed from another class, use get/set method to return the list 다른 class에 있는 ArrayList를 사용하고 싶을 때는 get/set 메서드를 이용해서 불러오면 된다. Example code I class 1 import java.util.ArrayList; import java.util.Iterator; public class Main { public static void main(String[] args) { AnotherClass anotherClass = new AnotherClass(); anotherClass.addList(); ArrayList list = anotherClass.getList(); I..
JAVA
2019. 8. 1. 07:39
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Javascript Algorithm
- 프로그래머스
- 알고리즘
- math.abs
- equals()
- hackerrank javascript
- hackerrank
- hackerrank solution
- HackerRank Algorithm
- string class in java
- Collection Framework
- substring()
- repeat()
- Object type casting
- easy javascript algorithm
- C++
- 프로그래머스 알고리즘문제
- java
- easy algorithm
- math.max
- javascript
- algorithm
- HashMap
- hackerrank javascript solution
- spring boot application
- rest parameter
- 프로그래머스 알고리즘
- ... in Javascript
- compareTo()
- code refactoring
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함