Kotlin program to find one element in a list of objects

In this Kotlin programming tutorial, we will learn how to find one element in a list of objects. Kotlin provides different ways to find values in a list. We will explore these with examples.

Read

Kotlin find index of first element in an iterable/list

Kotlin provides one method called indexOfFirst that returns the index of the first element of an iterable or list. In this tutorial, I will show you how to use this method with different examples.

Read

Dart metadata and how to create custom metadata

A metadata starts with an @ character followed by the name of the metadata. Metadata is used to provide extra information in code. For example, if you override one method, @override is used above the overridden method name. This is a metadata annotation. We can create one annotation in dart.

Read

Create a basic flutter project in Android Studio

You can build flutter apps using flutter command line tools with any text editor. However, if you want to get other development helpers like syntax highlighter, widget editing, auto completion, debugging etc., you should consider using one of the editor plugin that is provided by Google for Android studio, VS Code and Intellij-Idea.

Read

Typedef in dart with examples

typedef is a function-type alias. Functions are objects in dart-like any other type. typedef are alias for functions. typedef keyword is used to define a typedef.

Read

Find the number of days between two dates in Python

Find out the difference between two dates in days using python. For example, if the first date is 2-2-2020 and the second date is 2-3-2020 in day-month-year format, this should print 29 days as the output.

Read

Dart comments and types of comments supported in dart

Comments are equally important in any programming language. Comments are ignored by the compiler i.e. they are not executed by the compiler and they don't provide any impact on the output of the program.

Read

What is a callable class in Dart programming language

Callable class is a way in dart to change one dart class that makes its instances callable like a function. The only change requires is to implement one new function called call in that class. This function can take different parameters and it can return values like any other normal function.

Read

C++ Interview question : Find the sum of the series 1 + 3 + 5 + …..

In this C++ tutorial, I will show you how to find the sum of the series 1 +3 +5…. This is a beginner level interview question. We will show you two different ways to solve it.

Read

Generators in dart with examples

Dart generators are used to produce a sequence of values lazily. We have two different types of generators called synchronous and asynchronous generators. In this post, I will show you how these generators works with examples.

Read