Monday, 8 May 2017

Java Tutorial: Enum in java[How to define a constructor and method in enum - siteinfo]

Click here to watch in Youtube :
enum SiteInfo

    private String url;

    private SiteInfo(String url)
        this.url = url;

    public String getUrl()
        return url;

public class EnumDemo
    public static void main(String[] args)
Click the below link to download the code:

Github Link:

Bitbucket Link:

See also:
  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • Kids Tutorial
  • No comments:

    Post a Comment

    Google+ Followers

    Google+ Badge