Scala program to find Factorial of a given number

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a Scala program to find Factorial of a given number using Linear Recursion. Let’s look at the program:

Output: Currently this program uses Linear Recursion for finding Read more

Finding word counts in a file using Spark

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at the steps to find the word counts in a file using Spark 2.4.3. Input file:

Spark shell statements:

Output:

Happy Learning! Please leave a reply Read more

Match Expression in Scala

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at a program to demonstrate the Match Expression in Scala. Match Expression is used to implement Java switch statement flow in Scala. Let’s look at the sample program:

Output: Read more