list - How to judge isInstance(ArrayList<>) in java -


how judge whether variable arraylist in java? isinstance function.

just use instanceof, blow simple example how detect variable arraylist:

list<string> strings = new arraylist<>();  if (strings instanceof arraylist) {     system.out.println("arraylist"); } 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -