Programming

Java String Array — step-by-step Programming tutorial on Progressive Robot

Java String Array

URL: https://www.progressiverobot.com/java-string-array/ Java String array is used to hold fixed number of Strings. [String](/community/tutorials/java-string) [array](/community/tutorials/java-array) is very common in [simple java programs](/community/tutorials/simple-java-programs), specially among beginners to java and to test some specific scenarios. Even [java main method](/community/tutorials/public-static-void-main-string-args-java-main-method) argument is string array – public static void main(String[] args). So today we will look into different aspects […]

Read more
Java Array of ArrayList, ArrayList of Array — step-by-step Programming tutorial on Progressive Robot

Java Array of ArrayList, ArrayList of Array

URL: https://www.progressiverobot.com/java-array-of-arraylist-of-array/ Today we will learn how to create a Java array of ArrayList. We will also learn how to create an ArrayList of array elements. Java Array of ArrayList ![java array of arraylist, array of lists in java](images/java-array-of-arraylist-of-array-section-1.png) Creating array of [list in java](/community/tutorials/java-list) is not complex. Below is a simple program showing [java […]

Read more
Функция init в Go — step-by-step Programming tutorial on Progressive Robot

Функция init в Go

В Go заданнная функция init() выделяет элемент кода, который запускатся до любой другой части вашего пакета. Этот код запускается сразу же после импорта пакета, и его можно использовать при…

Read more
Servlet Exception and Error Handling Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Servlet Exception and Error Handling Example Tutorial

URL: https://www.progressiverobot.com/servlet-exception-and-error-handling-example-tutorial/ Today we will look into Servlet Exception and Error Handling. Sometime back we wrote a post about [Exception Handling in Java](/community/tutorials/exception-handling-in-java) but when it comes to web application, we need more than normal exception handling in java. Servlet Exception If you notice, doGet() and doPost() methods throw javax.servlet.ServletException and IOException, let's see what […]

Read more
Java Servlet Filter Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Java Servlet Filter Example Tutorial

URL: https://www.progressiverobot.com/java-servlet-filter-example-tutorial/ Java Servlet Filter is used to intercept the client request and do some pre-processing. It can also intercept the response and do post-processing before sending to the client in web application. This is the fourth article in the series of Web Applications Tutorial, you might want to check out earlier articles too. [Java […]

Read more
N-Queens problem using backtracking in Java/C++ — step-by-step Programming tutorial on Progressive Robot

N-Queens problem using backtracking in Java/C++

URL: https://www.progressiverobot.com/n-queens-problem-java-c-plus-plus/ If you love playing chess, you'll enjoy learning about the N-queens problem. It is a good problem to understand backtracking. What is Backtracking? In backtracking, we start with one pos­si­ble move out of many avail­able moves. We then try to solve the prob­lem. If we are able to solve the prob­lem with the […]

Read more
Google Guice Dependency Injection Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Google Guice Dependency Injection Example Tutorial

Google Guice is the framework to automate the dependency injection in applications. If you have come across directly here, I would recommend you to check out [Dependency Injection Example](/community/tutorials/java-dependency-injection-design-pattern-example-tutorial "Dependency Injection Design Pattern in Java Example Tutorial") where we learned the problems with traditional approach of Object creation and implementation benefits of dependency injection. In […]

Read more
What is a Balanced Binary Tree and How to Check it? — step-by-step Programming tutorial on Progressive Robot

What is a Balanced Binary Tree and How to Check it?

In case of binary trees, if the trees are skewed, they become computationally inefficient to perform operations on. This is the motivation behind making sure that trees are not skewed. Hence the need for balanced binary trees. What is a Balanced Binary Tree Balanced Binary trees are computationally efficient to perform operations on. A balanced […]

Read more
CHAT