Programming

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 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 Ternary Operator — step-by-step Programming tutorial on Progressive Robot

Java Ternary Operator

URL: https://www.progressiverobot.com/java-ternary-operator/ Java ternary operator is the only conditional operator that takes three operands. Java ternary operator is a one liner replacement for if-then-else statement and used a lot in java programming. We can use ternary operator to replace switch also as shown in below example. Java Ternary Operator ![java ternary operator](images/java-ternary-operator-section-1.png) The first operand […]

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
JUnit Display Name - @DisplayName — step-by-step Programming tutorial on Progressive Robot

JUnit Display Name – @DisplayName

URL: https://www.progressiverobot.com/junit-display-name-displayname/ JUnit @DisplayName annotation is used to provide a custom name for the test class and test methods. We can use spaces, special characters, and even emojis in the display name. JUnit Display Name Example By default, [JUnit](/community/tutorials/junit5-tutorial) reporting prints the class name and method name in the IDE test report. We can use […]

Read more
Min Heap Binary Tree — step-by-step Programming tutorial on Progressive Robot

Min Heap Binary Tree

URL: https://www.progressiverobot.com/min-heap-binary-tree/ A Min Heap Binary Tree is a Binary Tree where the root node has the minimum key in the tree. The above definition holds true for all sub-trees in the tree. This is called the Min Heap property. Almost every node other than the last two layers must have two children. That is, […]

Read more
OpenCSV CSVReader CSVWriter Example — step-by-step Programming tutorial on Progressive Robot

OpenCSV CSVReader CSVWriter Example

URL: https://www.progressiverobot.com/opencsv-csvreader-csvwriter-example/ OpenCSV is a lightweight java CSV parser. Today we will look into OpenCSV example for CSV parsing. OpenCSV ![OpenCSV, CSVReader, CSVWriter, OpenCSV Example](images/opencsv-csvreader-csvwriter-example-section-1.png) OpenCSV provides most of the basic features for CSV parsing. OpenCSV is more popular because we don't have any builtin CSV parser in java. Some of the important classes in […]

Read more
CHAT