学习是最好的投资!
책의 코드 가져오기를 주의 깊게 살펴보면 import static ...이라는 줄이 있습니다. 이는 정적 메서드를 포함하여 클래스의 정적 요소를 가져오는 데 사용할 수 있습니다.
import static ...
import설명에 주목하세요
import
두번째 줄 보세요import static net.mindview.util.Tuple.*
import static net.mindview.util.Tuple.*
책의 코드 가져오기를 주의 깊게 살펴보면
import static ...
이라는 줄이 있습니다. 이는 정적 메서드를 포함하여 클래스의 정적 요소를 가져오는 데 사용할 수 있습니다.
으아아아import
설명에 주목하세요두번째 줄 보세요
import static net.mindview.util.Tuple.*