Programming

How To Work with Strings in PHP — step-by-step Programming tutorial on Progressive Robot

How To Work with Strings in PHP

A string is a sequence of one or more characters that may consist of letters, numbers, or symbols. In this article, you will learn how to create and view the output of strings, use escape sequences, concatenate strings, store strings in variables, and the rules of using quotes, apostrophes, and newlines within strings in PHP.

Read more
Regular Expression in Java - Java Regex Example — step-by-step Programming tutorial on Progressive Robot

Regular Expression in Java – Java Regex Example

URL: https://www.progressiverobot.com/regular-expression-in-java-regex-example/ Welcome to Regular Expression in Java. It's also called Regex in Java. When I started programming, java regular expression was a nightmare for me. This tutorial is aimed to help you master Regular Expression in Java. I will also come back here to refresh my Java Regex learning. Regular Expression in Java ![Regular […]

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

Mediator Design Pattern in Java

URL: https://www.progressiverobot.com/mediator-design-pattern-java/ Mediator design pattern is one of the behavioral design pattern, so it deals with the behaviors of objects. Mediator design pattern is used to provide a centralized communication medium between different objects in a system. Mediator Design Pattern ![mediator pattern, mediator design pattern, mediator pattern java](images/mediator-design-pattern-java-section-1.png) According to GoF, mediator pattern intent is: […]

Read more
Mockito Argument Matchers - any(), eq() — step-by-step Programming tutorial on Progressive Robot

Mockito Argument Matchers – any(), eq()

URL: https://www.progressiverobot.com/mockito-argument-matchers-any-eq/ Mockito allows us to create mock objects and stub the behavior for our test cases. We usually mock the behavior using when() and thenReturn() on the mock object. Mockito Argument Matchers – any() Sometimes we want to mock the behavior for any argument of the given type, in that case, we can use […]

Read more
Java REPL - jshell — step-by-step Programming tutorial on Progressive Robot

Java REPL – jshell

URL: https://www.progressiverobot.com/java-repl-jshell/ Java REPL or jshell is the new tool introduced in [java 9](/community/tutorials/java-9-features-with-examples). Today we will look into Java REPL basics and run some test programs in jshell interface. Java REPL Let's first try to understand why REPL support was added in Java, if it was that important then why in so late release. […]

Read more
Java Inner Class — step-by-step Programming tutorial on Progressive Robot

Java Inner Class

URL: https://www.progressiverobot.com/java-inner-class/ Java inner class is defined inside the body of another class. Java inner class can be declared private, public, protected, or with default access whereas an outer class can have only public or default access. Java Nested classes are divided into two types. ### static nested class If the nested class is static, […]

Read more
Sorting a Vector in C++ — step-by-step Programming tutorial on Progressive Robot

Sorting a Vector in C++

URL: https://www.progressiverobot.com/sorting-a-vector-in-c-plus-plus/ Introduction In this tutorial, we are going to focus on Sorting a Vector in C++. Sorting is one of the vastly performed operations in any programming language. Similarly, in C++ too, there are several algorithms following which we can sort any data structure. For [vectors](/community/tutorials/vectors-in-c-plus-plus), in particular, we can perform sorting operations in […]

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

Abstract Factory Design Pattern in Java

Welcome to Abstract Factory Design Pattern in java example. Abstract Factory design pattern is one of the Creational patterns. Abstract Factory pattern is almost similar to [Factory Pattern](/community/tutorials/factory-design-pattern-in-java) except the fact that its more like factory of factories. Abstract Factory ![abstract factory, abstract factory design pattern, abstract factory pattern](images/abstract-factory-design-pattern-in-java-section-1.png) If you are familiar with [factory […]

Read more
JavaMail Example - Send Mail in Java using SMTP — step-by-step Programming tutorial on Progressive Robot

JavaMail Example – Send Mail in Java using SMTP

URL: https://www.progressiverobot.com/javamail-example-send-mail-in-java-smtp/ Today we will look into JavaMail Example to send email in java programs. Sending emails is one of the common tasks in real life applications and that's why Java provides robust JavaMail API that we can use to send emails using SMTP server. JavaMail API supports both TLS and SSL authentication for sending […]

Read more
CHAT