Programming

How To Use Arrays in Java — step-by-step Programming tutorial on Progressive Robot

How To Use Arrays in Java

Learn how to work with arrays in Java. In this tutorial, you’ll use a char array to store a password securely while learning the intricacies of arrays in Java.

Read more
Java equals() and hashCode() — step-by-step Programming tutorial on Progressive Robot

Java equals() and hashCode()

URL: https://www.progressiverobot.com/java-equals-hashcode/ Java equals() and hashCode() methods are present in Object class. So every java class gets the default implementation of equals() and hashCode(). In this post we will look into java equals() and hashCode() methods in detail. Java equals() Object class defined equals() method like this: public boolean equals(Object obj) { return (this == […]

Read more
Reverse a Linked List — step-by-step Programming tutorial on Progressive Robot

Reverse a Linked List

URL: https://www.progressiverobot.com/reverse-a-linked-list/ Reversing a Linked List is an interesting problem in data structure and algorithms. In this tutorial, we'll be discussing the various algorithms to reverse a [Linked List](/community/tutorials/java-linkedlist-linkedlist-java) and then implement them using Java. Reverse a Linked List LinkedList is a data structure which stores the data in a linear way. Though not in […]

Read more
Jackson JSON Java Parser API Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Jackson JSON Java Parser API Example Tutorial

URL: https://www.progressiverobot.com/jackson-json-java-parser-api-example-tutorial/ Jackson JSON Java Parser is very popular and used in Spring framework too. [Java JSON Processing API](/community/tutorials/java-json-example "Java JSON Processing API Example Tutorial") is not very user friendly and doesn't provide features for automatic transformation from Json to Java object and vice versa. Luckily we have some alternative APIs that we can use […]

Read more
Composite Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Composite Design Pattern in Java

Composite pattern is one of the Structural design pattern. Composite design pattern is used when we have to represent a part-whole hierarchy. Composite Design Pattern ![composite pattern, composite design pattern](images/composite-design-pattern-in-java-section-1.png) When we need to create a structure in a way that the objects in the structure has to be treated the same way, we can […]

Read more
Java Files - java.nio.file.Files Class — step-by-step Programming tutorial on Progressive Robot

Java Files – java.nio.file.Files Class

URL: https://www.progressiverobot.com/java-files-nio-files-class/ Java Files class was introduced in Java 1.7 and is a part of java.nio.file package. Java Files Class Java Files class contains [static](/community/tutorials/static-keyword-in-java) methods that work on files and directories. This class is used for basic file operations like create, read, write, copy and delete the files or directories of the file system. […]

Read more
Mockito mock examples — step-by-step Programming tutorial on Progressive Robot

Mockito mock examples

URL: https://www.progressiverobot.com/mockito-mock-examples/ Mockito mocking framework provides different ways to mock a class. Let's look at different methods through which we can mock a class and stub its behaviors. Mockito mock method We can use [Mockito](/community/tutorials/mockito-tutorial) class mock() method to create a mock object of a given class or interface. This is the simplest way to […]

Read more
How To Write Switch Statements in Go — step-by-step Programming tutorial on Progressive Robot

How To Write Switch Statements in Go

switch is an alternative conditional statement useful for communicating actions taken by your Go programs when presented with different options. Everything we can write with the switch statement can also be written with if statements. We’ll look at a few examples of what the switch statement can do, the if statements it replaces, and where it’s most appropriately applied.

Read more
Log4j2 Example Tutorial - Configuration, Levels, Appenders — step-by-step Programming tutorial on Progressive Robot

Log4j2 Example Tutorial – Configuration, Levels, Appenders

URL: https://www.progressiverobot.com/log4j2-example-tutorial-configuration-levels-appenders/ Welcome to the Apache Log4j2 Example Tutorial. If you ask an expert developer about the most annoying thing about an application, the answer might be related to logging. If there is no suitable logging in an application, maintenance will be a nightmare. Most of the application go through Development testing, unit testing, integration testing. But […]

Read more
Java 12 Features — step-by-step Programming tutorial on Progressive Robot

Java 12 Features

URL: https://www.progressiverobot.com/java-12-features/ Finally, JDK 12 which is a part of the six-month release cycle, is here. It comes after the last Java LTS version 11. We had discussed at length on [Java 11 features](/community/tutorials/java-11-features) before. Today we'll be discussing Java 12 features and see what it has in store for developers. Java 12 was launched […]

Read more
CHAT