Java

How To Setup a DavMail Exchange Gateway on a Debian 7 VPS — step-by-step Linux tutorial on Progressive Robot

How To Setup a DavMail Exchange Gateway on a Debian 7 VPS

If your workplace or school uses Microsoft Exchange for E-mail, you may wish to access your Exchange E-mail account from E-mail clients that do not support the Exchange protocol. DavMail provides a solution, translating Microsoft Exchange to open protocols like POP, IMAP, SMTP, Caldav, Carddav, and LDAP.

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

Java 14 Features

URL: https://www.progressiverobot.com/java-14-features/ Keeping up with the six-month cycle tradition, after the release of Java 13 on September 17, 2019, Java 14, another non-LTS version is scheduled to release on March 17, 2020. Java 14 Features Here's the list of Java 14 features: Switch Expressions (Standard) – JEP 361 Pattern Matching for [instanceof](/community/tutorials/instanceof-java) (Preview) – JEP […]

Read more
JUnit HTML Report — step-by-step Programming tutorial on Progressive Robot

JUnit HTML Report

URL: https://www.progressiverobot.com/junit-html-report/ When we configure maven-surefire-plugin to run our JUnit tests, it generates surefire-reports directory. This directory contains a txt file and an XML file for every test class. However, reading these files is not easy and it's also not easily explainable to a non-techie person. JUnit HTML Report We can use maven-surefire-report-plugin plugin to […]

Read more
Java switch case String — step-by-step Programming tutorial on Progressive Robot

Java switch case String

URL: https://www.progressiverobot.com/java-switch-case-string/ Today we will look into Java Switch Case String Example. Being a java programmer, I know the importance of String and how many times it's used for conditional flow. Whether you have a simple method that behaves differently for different input String or a Servlet controller class to check the incoming action and […]

Read more
Java DataSource, JDBC DataSource Example — step-by-step Programming tutorial on Progressive Robot

Java DataSource, JDBC DataSource Example

URL: https://www.progressiverobot.com/java-datasource-jdbc-datasource-example/ Java DataSource and JDBC DataSource programming is the way to work with database in our java programs. We have already seen that [JDBC DriverManager](/community/tutorials/jdbc-example-mysql-oracle "JDBC Example Tutorial – Drivers, Connection, Statement and ResultSet") can be used to get relational database connections. But when it comes to actual programming, we want more than just […]

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
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
CHAT