Programming

Java SE 8 Interview Questions and Answers (Part-1) — step-by-step Programming tutorial on Progressive Robot

Java SE 8 Interview Questions and Answers (Part-1)

URL: https://www.progressiverobot.com/javase8-interview-questions-part1/ In this post, we are going to discuss some important [Java SE 8](/community/tutorials/java-8-features-with-examples) Interview Questions with Answers. I will write one more post to discuss the remaining Java SE 8 Interview Questions. Java 8 Interview Questions Why do we need change to Java again? Java SE 8 New Features? Advantages of Java SE […]

Read more
JUnit Setup Maven - JUnit 4 and JUnit 5 — step-by-step Programming tutorial on Progressive Robot

JUnit Setup Maven – JUnit 4 and JUnit 5

URL: https://www.progressiverobot.com/junit-setup-maven/ JUnit 4 and JUnit 5 are completely different frameworks. They both serve the same purpose, but the JUnit 5 is a completely different testing framework written from scratch. It's not using anything from JUnit 4 APIs. Here we will look into how to setup JUnit 4 and [JUnit 5](/community/tutorials/junit5-tutorial) in our maven projects. […]

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