Search results for: Java

In this lesson, you will learn about the history of Java, types of Java programs, Java Virtual Machine (JVM), Java Standard Library and current Java editions. History Java was developed in 1991 by the Green Team, comprising James Gosling, Mike Sheridan, and Patrick Naughton, as a pilot project for a simple language to program smart…

Read More Introduction to Java

In this Java tutorial, I am going to share with you different ways how to generate a random string of characters. You will learn to generate the following types of random Strings of characters: alpha-numeric String of characters of any length or of a specific length, Letters only, Numbers only. I hope you will find…

Read More Random String of Characters in Java. Different Examples.

In this tutorial, we will generate a random alpha-numeric string of characters, which can be used as a user password. Password Requirements When generating passwords, it’s important to set requirements that make them strong and difficult to guess. Here are some guidelines to follow when creating password requirements: Length The length of a password is…

Read More Generate Secure Password in Java

Introduction Linked lists are an important data structure used in programming. They are especially useful when the size of the data is unknown and dynamic, or when we want to implement other data structures like stacks and queues. In this tutorial, we’ll focus on singly linked lists (SLL), one of the most commonly used linked…

Read More Singly linked list in Java

Introduction A Doubly Linked List (DLL) is a data structure in which each node of the list contains a pointer to its previous and next nodes. This allows bidirectional traversal of the list. In this tutorial, we will discuss the representation, advantages, and disadvantages of using a DLL over a singly linked list, operations on…

Read More Doubly Linked List in Java

In this tutorial, I am going to share with you a few different techniques you can use to iterate over a collection in Java. Iterating ArrayList with Enhanced For-Loop List<String> names = new ArrayList<>(); names.add(“Sergey”); names.add(“Bill”); names.add(“John”); for(String name: names) { System.out.println(name); } Output: Sergey Bill John We declare a List of String objects named…

Read More Iterating over Collections in Java: Examples

Learning how to convert Java objects into JSON and vice versa can be very helpful for your work as a full-stack mobile app developer. In this blog post, I will share some code examples that will help you with the most common tasks you’ll encounter when working with JSON and Java. I will cover the…

Read More Convert Java into JSON and JSON into Java. All Possible Examples.