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.
ReadKotlin 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.
ReadYou 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.
ReadLearn 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.
ReadScanner 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.
ReadIn 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.
ReadPython 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.
ReadIn 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.
ReadYou can't directly print the dollar($) symbol in dart. It is used only with an identifier or an expression in curly braces. For example :.
ReadThis 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