Programming

Java LinkedList - LinkedList In Java — step-by-step Programming tutorial on Progressive Robot

Java LinkedList – LinkedList In Java

URL: https://www.progressiverobot.com/java-linkedlist-linkedlist-java/ Java LinkedList is an implementation of the List and Deque interfaces. It is one of the frequently used List implementation class. It extends AbstractSequentialList and implements List and Deque interfaces. It is an ordered collection and supports duplicate elements. It stores elements in Insertion order. It supports adding null elements. It supports index […]

Read more
String Concatenation in C++: 4 Ways To Concatenate Strings — step-by-step Programming tutorial on Progressive Robot

String Concatenation in C++: 4 Ways To Concatenate Strings

URL: https://www.progressiverobot.com/string-concatenation-in-c-plus-plus/ In this article, we will unveil the various ways of performing string concatenation in the [C++ language](/community/tutorials/c-plus-plus). This method can be used for various purposes while programming. But in general, the concept is the same as combining two strings from different locations and placing them together. Techniques of String Concatenation in C++ The […]

Read more
How to Create a Random Number Generator in C++ — step-by-step Programming tutorial on Progressive Robot

How to Create a Random Number Generator in C++

URL: https://www.progressiverobot.com/random-number-generator-c-plus-plus/ In this article, we'll go over the functions needed to create a random number generator in C++. In the world of computers, random numbers form an essential component to add the flavor of anonymity and security. A random number generator forms the backbone of creating pseudo-random numbers. The idea behind pseudo-random numbers is […]

Read more
Java Lock Example - ReentrantLock — step-by-step Programming tutorial on Progressive Robot

Java Lock Example – ReentrantLock

URL: https://www.progressiverobot.com/java-lock-example-reentrantlock/ Welcome to Java Lock example tutorial. Usually when working with multi-threaded environment, we use [synchronized for thread safety](/community/tutorials/thread-safety-in-java). Java Lock ![java lock, java lock example, ReentrantLock in Java, java locks](images/java-lock-example-reentrantlock-section-1.png) Most of the times, synchronized keyword is the way to go but it has some shortcomings that lead the way to inclusion of […]

Read more
Java 9 Modules — step-by-step Programming tutorial on Progressive Robot

Java 9 Modules

URL: https://www.progressiverobot.com/java-9-modules/ Java 9 modules are one of the biggest change in the structure of java. Here I am going to give a brief high level introduction about "Java 9 Module System". Java 9 Modules We will look into following topics about java 9 modules system. Introduction Java SE 9: Jigsaw Project Problems of Current […]

Read more
Convert char to String in Java — step-by-step Programming tutorial on Progressive Robot

Convert char to String in Java

Sometimes we have to convert char to String in java program. Here we will look into different methods you can convert character to string in java. We will also learn how to convert char array to String using different methods. Convert char to String Java ![convert char to string java](images/convert-char-to-string-java-section-1.png) Here is a simple program […]

Read more
SQL Injection in Java and How to Easily Prevent it — step-by-step Programming tutorial on Progressive Robot

SQL Injection in Java and How to Easily Prevent it

URL: https://www.progressiverobot.com/sql-injection-in-java/ What is SQL Injection? SQL Injection is one of the top 10 web application vulnerabilities. In simple words, SQL Injection means injecting/inserting SQL code in a query via user-inputted data. It can occur in any applications using relational databases like Oracle, MySQL, PostgreSQL and SQL Server. To perform SQL Injection, a malicious user […]

Read more
Java create new file — step-by-step Programming tutorial on Progressive Robot

Java create new file

URL: https://www.progressiverobot.com/java-create-new-file/ Creating a file is a very common IO operation. Today we will look into different ways to create a file in java. Java create file ![java create file, java create new file](images/java-create-new-file-section-1.png) There are three popular methods to create file in java. Let's look at them one by one. ### File.createNewFile() java.io.File class […]

Read more
CHAT