IsEnum.java Source code

Java tutorial

Introduction

Here is the source code for IsEnum.java

Source

import org.xml.sax.XMLReader;

public class IsEnum {

    public static void main(String[] args) {
        System.out.println(Size.class.isEnum());
        System.out.println(String.class.isEnum());
        System.out.println(String.class.isInstance("Test"));
        System.out.println(XMLReader.class.isInterface());
    }
}

enum Size {
    S, M, L, XL, XXL, XXXL;

}