Mindblown: a blog about philosophy.

  • Input Stream Class

    In this tutorial, we will learn about the Java InputStream class and its methods with the help of an example. The InputStream class of the java.io package is an abstract superclass that represents an input stream of bytes. Since InputStream is an abstract class, it is not useful by itself. However, its subclasses can be used to read data. Subclasses of…

  • Java I/O Streams

    In this tutorial, we will learn about Java input/output streams and their types. In Java, streams are the sequence of data that are read from the source and written to the destination. An input stream is used to read data from the source. And, an output stream is used to write data to the destination. For example, in our…

  • Java Enum Set

    In this tutorial, we will learn about the Java LinkedHashSet class and its methods with the help of examples. The LinkedHashSet class of the Java collections framework provides functionalities of both the hashtable and the linked list data structure. It implements the Set interface. Elements of LinkedHashSet are stored in hash tables similar to HashSet. However, linked hash sets maintain a…

  • Hash Set Class

    In this tutorial, we will learn about the Java HashSet class. We will learn about different hash set methods and operations with the help of examples. The HashSet class of the Java Collections framework provides the functionalities of the hash table data structure. It implements the Set interface. Creating a HashSet In order to create a hash set,…

  • Java Set Interface

    In this tutorial, we will learn about the Set interface in Java and its methods. The Set interface of the Java Collections framework provides the features of the mathematical set in Java. It extends the Collection interface. Unlike the List interface, sets cannot contain duplicate elements. Classes that implement Set Since Set is an interface, we cannot create objects from it. In order to use…

  • Linked Hash Map

    In this tutorial, we will learn about the Java LinkedHashMap class and its operations with the help of examples. The LinkedHashMap class of the Java collections framework provides the hash table and linked list implementation of the Map interface. The LinkedHashMap interface extends the HashMap class to store its entries in a hash table. It internally maintains a doubly-linked list among all…

  • Hash Map

    In this tutorial, we will learn about the Java HashMap class and its various operations with the help of examples. The HashMap class of the Java collections framework provides the functionality of the hash table data structure. It stores elements in key/value pairs. Here, keys are unique identifiers used to associate each value on a map. The HashMap class implements the Map interface. Create a HashMap In order…

  • Map Interface

    In this tutorial, we will learn about the Java Map interface and its methods. The Map interface of the Java collections framework provides the functionality of the map data structure. Working of Map In Java, elements of Map are stored in key/value pairs. Keys are unique values associated with individual Values. A map cannot contain duplicate keys. And, each key is associated with a…

  • Linked List

    Here is how we can create linked lists in Java: Here, Type indicates the type of a linked list. For example, Example: Create LinkedList in Java Output In the above example, we have created a LinkedList named animals. Here, we have used the add() method to add elements to the LinkedList. We will learn more about the add() method later in this tutorial. Working…

  • Deque Interface

    In this tutorial, we will learn about the Deque interface, how to use it, and its methods. The Deque interface of the Java collections framework provides the functionality of a double-ended queue. It extends the Queue interface. Working of Deque In a regular queue, elements are added from the rear and removed from the front. However, in a deque,…

Got any book recommendations?