Java

How To Use Loops in Java — step-by-step Programming tutorial on Progressive Robot

How To Use Loops in Java

Writing repetitive tasks is common in programming. Loops are structures for controlling repetitive program flow. Depending on their syntax and logic, there are two main types of loops: `while` and `for` loops. In this tutorial, you will use both types to create repetitive tasks and learn about the benefits and drawbacks of each one.

Read more
Iterator Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Iterator Design Pattern in Java

URL: https://www.progressiverobot.com/iterator-design-pattern-java/ Iterator design pattern in one of the behavioral pattern. Iterator pattern is used to provide a standard way to traverse through a group of Objects. Iterator pattern is widely used in [Java Collection Framework](/community/tutorials/collections-in-java-tutorial "Java Collections Framework Tutorial"). Iterator interface provides methods for traversing through a collection. Iterator Design Pattern ![iterator design pattern](images/iterator-design-pattern-java-section-1.png) […]

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

Java Annotations

URL: https://www.progressiverobot.com/java-annotations/ Java Annotations provides information about the code. Java annotations have no direct effect on the code they annotate. In java annotations tutorial, we will look into the following; Built-in Java annotations How to write Custom Annotation Annotations usage and how to parse annotations using [Reflection API](/community/tutorials/java-reflection-example-tutorial). Java Annotations ![java annotations, annotations in java, […]

Read more
Java continue statement — step-by-step Programming tutorial on Progressive Robot

Java continue statement

URL: https://www.progressiverobot.com/java-continue-statement/ Java continue statement is used to skip the current iteration of a loop. Continue statement in java can be used with for, while and do-while loop. Java continue statement When continue statement is used in a nested loop, it only skips the current execution of the inner loop. Java continue statement can be […]

Read more
Java Files - java.nio.file.Files Class — step-by-step Programming tutorial on Progressive Robot

Java Files – java.nio.file.Files Class

URL: https://www.progressiverobot.com/java-files-nio-files-class/ Java Files class was introduced in Java 1.7 and is a part of java.nio.file package. Java Files Class Java Files class contains [static](/community/tutorials/static-keyword-in-java) methods that work on files and directories. This class is used for basic file operations like create, read, write, copy and delete the files or directories of the file system. […]

Read more
Java Keytool Essentials: Working with Java Keystores — step-by-step Security tutorial on Progressive Robot

Java Keytool Essentials: Working with Java Keystores

Java Keytool is a key and certificate management tool that is used to manipulate Java Keystores, and is included with Java. A Java Keystore is a container for authorization certificates or public key certificates, and is often used by Java-based applications for encryption,…

Read more
Java Queue – Queue in Java — step-by-step Programming tutorial on Progressive Robot

Java Queue – Queue in Java

URL: https://www.progressiverobot.com/java-queue/ Java Queue is an interface available in java.util package and extends java.util.Collection interface. Just like Java List, Java Queue is a collection of ordered elements (Or objects) but it performs insert and remove operations differently. We can use Queue to store elements before processing those elements. ![](images/java-queue-section-1.png) Java Queue In this section, we […]

Read more
Java Singleton Design Pattern Best Practices with Examples — step-by-step Programming tutorial on Progressive Robot

Java Singleton Design Pattern Best Practices with Examples

URL: https://www.progressiverobot.com/java-singleton-design-pattern-best-practices-examples/ Introduction _Java Singleton Pattern_ is one of the _Gangs of Four Design patterns_ and comes in the _Creational Design Pattern_ category. From the definition, it seems to be a straightforward design pattern, but when it comes to implementation, it comes with a lot of concerns. In this article, we will learn about singleton […]

Read more
Java Thread Dump - VisualVM, jstack, kill -3, jcmd — step-by-step Programming tutorial on Progressive Robot

Java Thread Dump – VisualVM, jstack, kill -3, jcmd

URL: https://www.progressiverobot.com/java-thread-dump-visualvm-jstack-kill-3-jcmd/ Java Thread dump is list of all the threads active in the JVM. Java Thread Dump Java thread dump is very helpful in analyzing bottlenecks in the application and [deadlock](/community/tutorials/deadlock-in-java-example "Java Deadlock") situations. Here we will learn multiple ways through which we can generate thread dump for a java program. These instructions are […]

Read more
Java Zip File Folder Example — step-by-step Programming tutorial on Progressive Robot

Java Zip File Folder Example

URL: https://www.progressiverobot.com/java-zip-file-folder-example/ Today we will look into java zip file example. We will also compress a folder and create zip file using java program. Java ZIP java.util.zip.ZipOutputStream can be used to compress a file into ZIP format. Since a zip file can contain multiple entries, ZipOutputStream uses java.util.zip.ZipEntry to represent a zip file entry. Java […]

Read more
CHAT