Java

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

How To Use Maps in Java

URL: https://www.progressiverobot.com/how-to-use-maps-in-java/ *The author selected Free and Open Source Fund to receive a donation as part of the Write for DOnations program.* Introduction A map in Java is a group of entries, each with two linked parts – a key and a value. In essence, Map is an interface from the java.util package. To use […]

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

Java 10 Features

URL: https://www.progressiverobot.com/java-10-features/ Java 10 is the fastest release of a java version in its 23-year history. Java has been criticized for its slow growth and evolution, but Java 10 just shattered that concept. Java 10 is a release with many futuristic changes, the scope, and impact of which may not be obvious but are far-fetching. […]

Read more
Как установить Java с помощью Apt-Get в Ubuntu 16.04 — step-by-step Linux tutorial on Progressive Robot

Как установить Java с помощью Apt-Get в Ubuntu 16.04

Java и JVM (Виртуальная машина Java) широко используются в самом разном программном обеспечении. Эта статья описывает процесс установки и управления различными версиями Java с помощью утилиты apt-get. Для того, чтобы следовать инструкциям в этой статье,…

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

Java Convert String to double

URL: https://www.progressiverobot.com/java-convert-string-to-double/ Java String to double conversion can be done by many ways. Today we will look into some common ways to convert java string to double primitive data type or Double object. Note that since java supports autoboxing, double primitive type and Double object can be used interchangeably without any issues. Double d1 = […]

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

Java FutureTask Example Program

URL: https://www.progressiverobot.com/java-futuretask-example-program/ Sometime back I wrote a post about [Java Callable Future](/community/tutorials/java-callable-future-example) interfaces that we can use to get the concurrent processing benefits of threads as well as they are capable of returning value to the calling program. FutureTask is base concrete implementation of Future interface and provides asynchronous processing. It contains the methods to […]

Read more
Java NullPointerException - Detect, Fix, and Best Practices — step-by-step Programming tutorial on Progressive Robot

Java NullPointerException – Detect, Fix, and Best Practices

URL: https://www.progressiverobot.com/java-lang-nullpointerexception/ java.lang.NullPointerException is one of the most popular [exceptions in java](/community/tutorials/exception-handling-in-java) programming. Anybody working in java must have seen this popping out of nowhere in the java standalone program as well as the [java web application](/community/tutorials/java-web-application-tutorial-for-beginners). java.lang.NullPointerException NullPointerException is a runtime exception, so we don’t need to catch it in the program. NullPointerException is raised in an […]

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

Java RandomAccessFile Example

URL: https://www.progressiverobot.com/java-randomaccessfile-example/ Java RandomAccessFile provides the facility to read and write data to a file. RandomAccessFile works with file as large [array of bytes](/community/tutorials/string-byte-array-java) stored in the file system and a cursor using which we can move the file pointer position. Java RandomAccessFile !Java RandomAccessFile, RandomAccessFile in java, Java RandomAccessFile read write append example RandomAccessFile […]

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

Java Spliterator

URL: https://www.progressiverobot.com/java-spliterator/ Java Spliterator is one of the four iterators – Enumeration, [Iterator](/community/tutorials/java-iterator), [ListIterator](/community/tutorials/java-listiterator) and Spliterator. Java Spliterator Like Iterator and ListIterator, Spliterator is a Java Iterator, which is used to iterate elements one-by-one from a [List](/community/tutorials/java-list) implemented object. Some important points about Java Spliterator are: Java Spliterator is an interface in [Java Collection](/community/tutorials/collections-in-java-tutorial) API. […]

Read more
CHAT