Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

Python Program to Find Gravitational Force between Two Objects

By Faruque Ahamed Mollick

This tutorial is going to show you a simple Python program to calculate the Gravitational Force between two objects. To find out the gravitational force between two objects, for ex.... Read More

Generate SHA256 hash with Node.js

By Faruque Ahamed Mollick

In this tutorial, you will learn how to generate a SHA256 hash value for a specific string in Node.js. Secure Hash Algorithm 256 or SHA-256 belongs to SHA2. It is a cryptographic h.... Read More

Get the last N characters from a string in Swift

By Faruque Ahamed Mollick

In this tutorial, you will learn how to get the last N characters from a string in Swift with the help of code examples. To find out the last N characters from our Swift string, we.... Read More

Return multiple values from a function in Swift

By Faruque Ahamed Mollick

You can return multiple values from a function in Swift programming. But not in a generous way. It is a bit tricky to perform this task. In order to return multiple values from a S.... Read More

Get common elements between two arrays in Swift

Get common elements between two arrays in Swift

By Faruque Ahamed Mollick | July 3, 2022

After this Swift tutorial, you will be able to learn how to get common elements from two different arrays. Finding common items between two arrays is quite an easy task. Let’s see the code below: let homeDevices = ["Macbook", "Doorbell", "Smartphone", "TV", "Refrigerator"] let officeDevices = ["Air Conditioner", "Macbook", "Mouse", "Refrigerator", "CPU"] // Create new [&h Read More

Convert a String to an Integer in Swift

By Faruque Ahamed Mollick

In this Swift programming tutorial, you will learn how to convert a string to an integer. In the field of app development, you often need to convert a string into an integer so tha.... Read More

Get random element from an array in Swift

By Faruque Ahamed Mollick

In this Swift programming tutorial, you are going to learn how to get a random element from an Array. So let’s continue… Well, it is quite easy to get a random item fro.... Read More

Replace characters of a string in Swift

By Faruque Ahamed Mollick

In this tutorial, you will see how we can replace characters or part of a string in Swift program with examples. You will learn 3 methods of replacing string characters using Swift.... Read More