import java.util.*;
import java.lang.*;
import java.io.*;

enum Fruit {
    APPLE("Apple"),
    ORANGE("Orange"),
    PEAR("Pear"),
    LEMON("Lemon");
    
    private final String text;
    
    Fruit(final String text) {
        this.text = text;
    }
    
    @Override
    public String toString() {
        return this.text;
    }
}

class Main {
    public static void main(String[] args) {
        System.out.println(Fruit.APPLE);
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: