Get the class of java.util.Arrays$ArrayList
问题 How can I know the instance of java.util.Arrays$ArrayList . I've tried this code snippet but it does not work at all : if (myList instanceof Arrays) { //Do something here. } I have compared the object classtype with ArrayList and I had the same issue. But while I was inspecting the object, the classType was a : class java.util.Arrays$ArrayList The conditional statement below was the only solution I found: else if (myList.getClass().toString().equals("class java.util.Arrays$ArrayList")) { //do