Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

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

Generate random password in Swift

By Faruque Ahamed Mollick

In this Swift programming tutorial, I am going to let you know how to generate a random password in Swift programming. So let’s continue. Here we are going to create a simple.... Read More

Functions in Swift

By Faruque Ahamed Mollick

A function is a set of one or multiple statements that are organized together to perform a specific task. In simple words, a function contains a block of code that can be called us.... Read More

How to improve the website speed?

By Faruque Ahamed Mollick

How to improve the website speed?   When it comes to online business, one thing that people are generally lacking is patience. They say that patience is a virtue, but not in the w.... Read More