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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

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