Java Basics

  • Bipartite Graph

    char

    This is an example of how to use a char type in Java. The char data type is a single…

    Read More »
  • Bipartite Graph

    byte

    In this example we shall show you how to use a byte type in Java. The byte data type is…

    Read More »
  • Bipartite Graph

    boolean

    With this example we are going to demonstrate how to use a boolean type in Java. The boolean data type…

    Read More »
  • Bipartite Graph

    Using an enum as a state machine

    In this short example, a parser state machine processes raw XML from a ByteBuffer. Each state has its own process…

    Read More »
  • Bipartite Graph

    Each Enum Instance a different sub-class

    In this example we shall show you how to have each enum instance represent a different sub-class. To make each enum…

    Read More »
  • Bipartite Graph

    Enum to implement an interface

    With this example we are going to demonstrate how to use an enum to implement an interface. Implementing an interface…

    Read More »
  • Bipartite Graph

    Enum for Singleton and Utility class

    enum Singleton { INSTANCE; } enum Utility { ; // no instances } Related Article: Java Secret: Using an enum…

    Read More »
  • Bipartite Graph

    Modulo Operator

    In this example we shall show you how to use the modulo operator. The modulo operator is an arithmetic operator that…

    Read More »
  • Bipartite Graph

    Arithmetic Operators

    With this example we are going to demonstrate how to use the arithmetic operators in Java. The arithmetic operators supported…

    Read More »
Back to top button