Programming.java Source code

Java tutorial

Introduction

Here is the source code for Programming.java

Source

enum Programming {
    java, python,
}

public class Main {

    public static void main(String[] args) {
        Class cls = Programming.class;

        // returns the elements of this enum class
        for (Object obj : cls.getEnumConstants()) {
            System.out.println(obj);
        }
    }
}