이 경우 Class.isInstance()를 사용하면 된다. 다음은 이를 테스트하는 샘플 코드이다. package learningtest.java.generics; import org.junit.Test;
確定! 回上一頁