Kotlin program to convert character array to string

Sometimes we need to convert one character array to a String. For example, if the array is ['a','b','c','d','e'], we may need to convert it to string abcde or a-b-c-d-e etc. It is pretty easy in kotlin to convert one character array to string. In this tutorial, I will show you two different ways to do that.

Read

Kotlin 'also' scope function examples

Kotlin provides one scope function called also that can be used to perform some actions on an object. You can read it like also do this for it. It returns the same object and the context object is available as it. You can use it instead of the whole object.

Read

Different Dart class constructors

You must be familiar with the term class if you have worked on any object-oriented programming language. Objects are an instance of classes. Class is a blueprint and objects are created using that blueprint.

Read

Kotlin program to get the current time in milliseconds

Learn how to get the current time in milliseconds in Kotlin. We will learn how to do it using currentTimeMillis and by using the calendar class with examples.

Read

How to use Scanner class in Kotlin to read user inputs

Scanner class is actually a Java class. It is defined in java.util package. If you are from Java background, you must be aware of this class and how to use it. In Kotlin also, we can create one Scanner variable and use it to read user inputs.

Read

Kotlin program to print the Fibonacci series

In this tutorial, we will learn how to print the Fibonacci series in Kotlin. The Fibonacci series is a series of numbers where each value is the sum of its two preceding values. For example, 0,1,1,2,3,5,8,13 is the Fibonacci series of size 8. We will write programs to print the Fibonacci series of different length i.e. it will take the size and print out the series of that size.

Read

Python program to find the area and perimeter of a rectangle

Python program to find the area and perimeter of a rectangle. This python program will take the values as inputs from the user and prints out the final results.

Read

3 different ways to remove the last character of a string in JavaScript

In this post, I will show you three different JavaScript programs to remove the last character of a string. For example, if the string is hello1, it will print hello. Try to run these examples and drop one comment below if you have any queries.

Read

How to print the dollar sign in Dart

You can't directly print the dollar($) symbol in dart. It is used only with an identifier or an expression in curly braces. For example :.

Read

Dart program to remove the last character of string

This tutorial will show you how to remove the last character of a string in dart in two different ways. The first way will use the substring method to find the last character and the second way will use one regex.

Read