Java

How to convert Java Date into Specific TimeZone format — step-by-step Programming tutorial on Progressive Robot

How to convert Java Date into Specific TimeZone format

In the last example, we learned how to [convert Date to String in Java](/community/tutorials/convert-string-date-java). In this example, I am converting a Java Date object from one timezone to another. We will use [SimpleDateFormat](/community/tutorials/java-simpledateformat-java-date-format) class to format the Date in a specific format and we will set its timezone to print the date in a specific […]

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

Pyramid Pattern Programs in Java

URL: https://www.progressiverobot.com/pyramid-pattern-programs-in-java/ Pattern programs are used a lot in interviews to understand the logical thinking abilities of the interviewee. Pyramid patterns are very popular and once we get the logic on the way it's created, writing code to achieve the same is an easy task. Pyramid Pattern Programs in Java !Pyramid Pattern Programs in Java […]

Read more
How To Install Apache Kafka on Ubuntu 14.04 — step-by-step Linux tutorial on Progressive Robot

How To Install Apache Kafka on Ubuntu 14.04

Apache Kafka is a popular distributed message broker designed to handle large volumes of real-time data efficiently. A Kafka cluster is not only highly scalable and fault-tolerant, but it also has a much higher throughput compared to other message brokers such as ActiveMQ and RabbitMQ. Though it is generally used as a pub/sub messaging system, a lot of organizations also use it for log aggregation because it offers persistent storage for published messages.

Read more
Understanding Data Types in Java — step-by-step Programming tutorial on Progressive Robot

Understanding Data Types in Java

Java is a statically typed programming language. This means that when you create a variable, you must also specify its data type, which is the type of information it stores. Java has two data types: primitive and reference (also known as non-primitive). In this tutorial, you will use [variables](https://en.wikipedia.org/wiki/Variable_(computer_science)) to store and use information in a Java program to learn about some of the commonly used data types in Java.

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

Java ListIterator – ListIterator in Java

URL: https://www.progressiverobot.com/java-listiterator/ As we know Java has four cursors: Enumeration, Iterator, ListIterator, and Spliterator. We have already discussed Enumeration and Iterator cursors in my previous post. Before going through this post, please go through my previous post at: [Java Iterator](/community/tutorials/java-iterator). In this post, we will discuss about third Java cursor: ListIterator. Java ListIterator Like Iterator, […]

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

Java ThreadLocal Example

URL: https://www.progressiverobot.com/java-threadlocal-example/ Java ThreadLocal is used to create thread local variables. We know that all threads of an Object share it's variables, so the variable is not thread safe. We can use synchronization for thread safety but if we want to avoid synchronization, we can use ThreadLocal variables. Java ThreadLocal ![ThreadLocal, Java ThreadLocal](images/java-threadlocal-example-section-1.png) Every thread […]

Read more
Java Windows 10 Download Install — step-by-step Programming tutorial on Progressive Robot

Java Windows 10 Download Install

URL: https://www.progressiverobot.com/java-windows-10-download-install/ Today we will learn how to download and install Java on Windows 10. If you are new to Java programming then this is the first step you need to perform. Until unless your java Windows 10 environment is set up properly, you will not be able to develop Java programs and run them […]

Read more
Mockito Verify — step-by-step Programming tutorial on Progressive Robot

Mockito Verify

URL: https://www.progressiverobot.com/mockito-verify/ Mockito Verify methods are used to check that certain behavior happened. We can use Mockito verify methods at the end of the testing method code to make sure that specified methods are called. Mockito Verify Mockito verify() method can be used to test number of method invocations too. We can test exact number […]

Read more
How To Use Lists in Java — step-by-step Programming tutorial on Progressive Robot

How To Use Lists in Java

Learn about Java’s `java.util.List` interface! Discover how it allows you to group and store multiple elements in a collection, and its advanced options for storing and retrieving values.

Read more
CHAT