{

Welcome to my blog !


Convert String to Long in Kotlin with example

December 31, 2022 ·  1 min read

This tutorial explains about multiple ways to convert String to Long and Long to String There are multiple ways we can convert String to Long type in kotlin. Convert String to Long value use valueOf method import java.lang.Long; fun main() { val value = Long.valueOf("11"); println(value); //11 println(value is kotlin.Long);// true } use toLong method toLong or toLongOrNull method takes string object and returns an long value....

Convert NodeList to Array in javascript with examples

December 31, 2022 ·  3 min read

NodeList is a javascript inbuilt DOM object, that holds a collection of HTML document nodes. It represents a collection of document nodes used to select and modify DOM elements. Array is a collection of plain objects. NodeList represents collections but there are no filter or iterate methods to do manipulation like Array before 2020. Contents NodeList object in javascript forEach Inbuilt method to convert NodeList to Array in Javascript convert NodeList to Array in Javascript using an ES5 slice convert NodeList to Array using ES6 Array examples spread operator Array from the method NodeList introduced the forEach method in the 2020 DOM specification....

Convert Dictionary to Array of keys and values example in swift

December 31, 2022 ·  2 min read

This tutorial explains how to convert key and value arrays from a dictionary in Swift. Dictionary is a type that stores the key and values of a given type. It is similar to Hashtable in storing keys and values in java. Dictionary is unordered, so the output of keys and values in an array are unordered. In Swift, there are two types for storing key and value pairs....

Clear command in Unix|Linux|windows with examples

December 31, 2022 ·  1 min read

In Unix, Operation System, You will run multiple commands in the terminal, and you want to clear the previous run commands on the terminal. clear commands work in the following operating systems Linux flavors Unix Mac Ubuntu Bash shell Clear command clears the content on a terminal in Linux and Unix. This command does not accept any arguments. Here is a syntax clear It clears the current screen commands and output and shows a new prompt...

Classes and Objects in Typescript| Constructor and Inheritance examples

December 31, 2022 ·  6 min read

In this tutorial, learn the basics of the classes and objects in a typescript programming language. In Any Object-oriented programming Object-oriented programming’s foundational elements are classes and objects. The data is stored in classes, and the behavior or methods that operate on it are represented by methods. You can also check Typescript final keyword What is Class in Typescript? Class is introduced in the ES6 version of the latest JavaScript....

Subscribe
You'll get a notification every time a post gets published here.