Programming

Fractional Knapsack Using C++ — step-by-step Programming tutorial on Progressive Robot

Fractional Knapsack Using C++

In this article, we will learn to solve the fractional knapsack problem using C++. We will start by looking at the problem statement and then move to the solution. This problem is one of many popular classical problems. It is fairly different than its sibling 0-1 knapsack and [0-N knapsack](/community/tutorials/solving-0-n-knapsack-problem-in-cpp). This is a greedy algorithm […]

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

Java String Quiz

URL: https://www.progressiverobot.com/java-string-quiz/ Welcome to Java String Quiz. String is one of the most important classes in Java. If you have done any programming in java, you must have used it. The string is very popular when it comes to java interview questions or quiz. So I have gathered some great and tricky java string quiz […]

Read more
How To Define and Call Functions in Go — step-by-step Programming tutorial on Progressive Robot

How To Define and Call Functions in Go

A function is a section of code that, once defined, can be reused. Functions are used to make your code easier to understand by breaking it into small, understandable tasks that can be used more than once throughout your program. In this tutorial, we’ll go over how to define your own functions to use in your coding projects.

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

Entendendo ponteiros em Go

Quando você criar software em Go, você estará escrevendo funções e métodos. Você passa dados para essas funções como argumentos. Às vezes, a função precisa de uma cópia local dos dados e você quer que o original permaneça inalterado. Por exemplo, se você for um banco e tiver…

Read more
Cómo escribir paquetes en Go — step-by-step Programming tutorial on Progressive Robot

Cómo escribir paquetes en Go

Un paquete está compuesto por archivos de Go que se alojan en el mismo directorio y tienen la misma instrucción de paquetes al inicio. Puede incluir funcionalidad adicional de paquetes para hacer que tus programas sean más sofisticados. Algunos paquetes están disponibles a través de la biblioteca…

Read more
Java Web Services Tutorial — step-by-step Programming tutorial on Progressive Robot

Java Web Services Tutorial

URL: https://www.progressiverobot.com/java-web-services-tutorial/ Welcome to the Java Web Services Tutorial. Here we will learn about web services, useful concepts in web services and then different types of API we have in Java to create web services. What is a Web Service In simple words, services that can be accessed over network are called web services. So […]

Read more
JUnit Assert Exception - JUnit 5 and JUnit 4 — step-by-step Programming tutorial on Progressive Robot

JUnit Assert Exception – JUnit 5 and JUnit 4

URL: https://www.progressiverobot.com/junit-assert-exception-expected/ We can test expected exceptions using [JUnit 5](/community/tutorials/junit5-tutorial) assertThrows assertion. This [JUnit assertion](/community/tutorials/junit-assertions) method returns the thrown exception, so we can use it to assert exception message too. JUnit Assert Exception Here is a simple example showing how to assert exception in JUnit 5. String str = null; assertThrows(NullPointerException.class, () -> str.length()); JUnit […]

Read more
Matrix Programs in Java — step-by-step Programming tutorial on Progressive Robot

Matrix Programs in Java

URL: https://www.progressiverobot.com/matrix-programs-in-java/ A Matrix is a rectangular array. The elements are arranged in the rows and columns. In this tutorial, we will look at some matrix programs in Java. Graphical Representation of Matrix Matrix in Java We can implement a matrix using [two dimensional array in Java](/community/tutorials/two-dimensional-array-java). The element at row "r" and column "c" […]

Read more
Java Timer TimerTask Example — step-by-step Programming tutorial on Progressive Robot

Java Timer TimerTask Example

URL: https://www.progressiverobot.com/java-timer-timertask-example/ Java java.util.Timer is a utility class that can be used to schedule a thread to be executed at certain time in future. Java Timer class can be used to schedule a task to be run one-time or to be run at regular intervals. Java TimerTask java.util.TimerTask is an [abstract class](/community/tutorials/abstract-class-in-java) that implements Runnable […]

Read more
CHAT