Programming

Mockito ArgumentCaptor, @Captor Annotation — step-by-step Programming tutorial on Progressive Robot

Mockito ArgumentCaptor, @Captor Annotation

URL: https://www.progressiverobot.com/mockito-argumentcaptor-captor-annotation/ Mockito ArgumentCaptor is used to capture arguments for mocked methods. ArgumentCaptor is used with [Mockito verify()](/community/tutorials/mockito-verify) methods to get the arguments passed when any method is called. This way, we can provide additional [JUnit assertions](/community/tutorials/junit-assertions) for our tests. Mockito ArgumentCaptor We can create ArgumentCaptor instance for any class, then its capture() method is […]

Read more
How to find all permutation of a String in Java — step-by-step Programming tutorial on Progressive Robot

How to find all permutation of a String in Java

URL: https://www.progressiverobot.com/permutation-of-string-in-java/ In this tutorial, we will learn how to find the permutation of a String in a Java Program. It's a tricky question and asked mostly in Java interviews. Algorithm for Permutation of a String in Java We will first take the first character from the String and permute with the remaining chars. If […]

Read more
How to Return an Array in a C++ Function — step-by-step Programming tutorial on Progressive Robot

How to Return an Array in a C++ Function

URL: https://www.progressiverobot.com/return-array-in-c-plus-plus-function/ Introduction In this tutorial, we are going to understand how we can return an array from a function in C++. Methods to Return an Array in a C++ Function Typically, returning a whole array to a function call is not possible. We could only do it using [pointers](/community/tutorials/pointers-in-c-and-c-plus-plus). Moreover, declaring a function with […]

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
Using the system("pause") command in C++ — step-by-step Programming tutorial on Progressive Robot

Using the system(“pause”) command in C++

URL: https://www.progressiverobot.com/system-pause-command-c-plus-plus/ In this article, we'll take a look at using the system("pause") command in C++. Before going through this article, note this the system("pause") command is _only_ available in Windows Systems. This means that you cannot use this from any Linux / Mac machine. The system() command Before going through the system("pause") command, let's […]

Read more
Información sobre la lógica de booleanos en Go — step-by-step Programming tutorial on Progressive Robot

Información sobre la lógica de booleanos en Go

El tipo de datos “Boolean” (​​​​​​bool​​​​​​) puede ser uno de dos valores, ya sea true (verdadero) o false (falso). Los booleanos se utilizan en programación para realizar comparaciones y controlar el flujo de los programas. Los booleanos representan los valores de verdad que se…

Read more
Entendendo o init em Go — step-by-step Programming tutorial on Progressive Robot

Entendendo o init em Go

Em Go, a função pré-definida init() faz com que uma parte do código execute antes de qualquer outra parte do seu pacote. Esse código vai executar assim que o pacote for importado e poderá ser usado…

Read more
Entendendo o GOPATH — step-by-step Programming tutorial on Progressive Robot

Entendendo o GOPATH

Este artigo irá orientá-lo para entender o que é o GOPATH, como ele funciona e como configurá-lo. Este é um passo crucial para configurar um ambiente de desenvolvimento em Go, além de entender como o Go encontra, instala e compila arquivos fonte. Neste artigo, usaremos o…

Read more
What is Go? — step-by-step Programming tutorial on Progressive Robot

What is Go?

Go is a compiled, statically typed programming language similar in syntax to C. Also referred to as “Golang”, Go is well-known for its performance in networking and multiprocessing. Originally designed at Google, Go version 1.0 released in March 2012 as a public open source project, which now has…

Read more
Android MVVM Design Pattern — step-by-step Programming tutorial on Progressive Robot

Android MVVM Design Pattern

In this tutorial, we'll be discussing and implementing the Android MVVM Architectural Pattern in our Android Application. We've previously discussed the [Android MVP Pattern](/community/tutorials/android-mvp). Why do we need these patterns? Adding everything in a Single Activity or Fragment would lead to problems in testing and refactoring the code. Hence, the use of separation of code […]

Read more
CHAT