Something like this :-
import java.util.ArrayList;
public class qu
{
public static void main(String args[])
{
ArrayList<String> ar1=new ArrayList<String>();
ArrayList<Character> obj = new ArrayList<Character>();
if(obj instanceof java.util.ArrayList)
System.out.println("My problem Solved");
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…