public class Main { public static void main(String[] argv) throws Exception { boolean b = "".getClass().isArray(); if (b) { System.out.println("object is an array"); } }}