Skip to content
  • Home
  • Technologies
    • Scala
    • Java
    • Hadoop
    • Apache Spark
    • C
  • Tips & Tricks
    • Unix
    • Java 8
  • Blog
  • About Us
Latest Posts:
How to replace multiple strings with their corresponding replacement strings in Scala
How to make the first character uppercase of each word of a List in Scala
How to separate even and odd numbers in a List of Integers in Scala

Clear ur Doubt

  • Home
  • Technologies
    • Scala
    • Java
    • Hadoop
    • Apache Spark
    • C
  • Tips & Tricks
    • Unix
    • Java 8
  • Blog
  • About Us
  • Home
  • Blog
  • Java 8

Tag: Java 8

Jun 08

Program to create a JSON file using Java

Sai Gowtham BadvityLeave a commentJava, Java 8create JSON, Java, Java 8

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Java program to create a JSON file using JSON-simple API. JSON-simple API is used to create and read JSON files in a simple way.   Maven dependency for Read more

Mar 26

Java 8 – Functional Interfaces – Introduction

Sai Gowtham BadvityLeave a commentJava 8Functional Interfaces, Java 8

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at the introduction of Functional Interfaces and Lambda Expressions in Java 8. One of the great updates in Java 8 is the addition of Lambda Expression support. Functional interfaces are Read more

Feb 06

Optional class in Java 8

Sai Gowtham BadvityLeave a commentJava, Java 8isPresent, Java 8, ofNullable, Optional

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at the demonstration of Optional<T> class in Java 8. Optional is introduced in Java 8 mainly to provide a way to avoid Null Pointer Exceptions in the code. Instead of directly Read more

Jan 06

How to format Date in Java 8

Sai Gowtham BadvityLeave a commentJava 8DateTimeFormatter, Java 8

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at formatting dates in Java 8. Using DateTimeFormatter, which was introduced in Java 8, we can format the date strings in a simple way. Let’s look at a sample program: Read more

Dec 15

How to remove nulls from an ArrayList in Java 8

Sai Gowtham BadvityLeave a commentJava 8ArrayList, Java 8, List, removing nulls, Stream API

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at removing nulls from an ArrayList in Java 8. Using Stream API, which was introduced in Java 8, we can remove null values from an ArrayList in a simple way. Read more

Dec 02

Default methods in Interfaces in Java 8

Sai Gowtham BadvityLeave a commentJavadefault method, Java 8

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a program to demonstrate default methods in Interfaces in Java 8. Default methods are introduced in Java 8 to provide a default implementation for methods in an Interface. Using Read more

Oct 22

How to remove duplicate User Defined Objects from a List collection object

Sai Gowtham Badvity1 CommentJavaArrayList, Collection, duplicate, HashSet, Java 8, List

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a program to remove duplicates from a List. Removing duplicate primitive and String values from List is a bit easy. We can use “Set” collection to remove the duplicates(if Read more

Oct 14

Spark Program to load a CSV file into a Dataset using Java 8

Sai Gowtham Badvity1 CommentApache Spark, Hadoop, JavaDataset, Java 8, rank(), Spark, Window function

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Spark(2.3.0) Program to load a CSV file into a Dataset using Java 8. Please go through the below post before going through this post. Program to load a Read more

Sep 27

Program to load a text file into a Dataset in Spark using Java 8

Sai Gowtham BadvityLeave a commentApache Spark, Java2.3.0, Apache Spark, Dataset, Java 8

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a program to load a text file into a Dataset in Spark(2.3.0) using Java 8. Check out the below classes/concepts before going through the program: static org.apache.spark.sql.functions.col org.apache.spark.sql.Dataset org.apache.spark.sql.Row Read more

Sep 26

Word Count program using Spark and Java 8

Sai Gowtham BadvityLeave a commentApache Spark, JavaJava 8, Spark Word Count

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at the WordCount program in Spark using Java 8. Before going through the below program, it’s better to look into below concepts for a better understanding of the program: org.apache.spark.api.java.JavaRDD org.apache.spark.api.java.JavaPairRDD Read more

Posts navigation

Older posts

Recent Posts

  • How to replace multiple strings with their corresponding replacement strings in Scala
  • How to make the first character uppercase of each word of a List in Scala
  • How to separate even and odd numbers in a List of Integers in Scala

Recent Comments

  • Sai Gowtham Badvity on Calculator program in Scala
  • Sai Aditya on Calculator program in Scala
  • pragadeeshwaran on How to add a new column and update its value based on the other column in the Dataframe in Spark
December 2023
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Feb    
Copyright © All rights reserved.
University Hub by WEN Themes