Arushi has Published 141 Articles

Factory method to create Immutable List in android?

Arushi

Arushi

Updated on 26-Jun-2020 12:48:02

209 Views

This example demonstrate about Factory method to create Immutable List in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.         ... Read More

How to check edit text values are Anagram or Not in android?

Arushi

Arushi

Updated on 26-Jun-2020 12:44:44

146 Views

This example demonstrate about How to check edit text values are Anagram or Not in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to print current activity name in android?

Arushi

Arushi

Updated on 26-Jun-2020 12:41:18

827 Views

This example demonstrate about How to print current activity name in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the ... Read More

How to get locale information from Network provider in android?

Arushi

Arushi

Updated on 26-Jun-2020 12:19:04

236 Views

This example demonstrate about How to get locale information from Network provider in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

How to set the style of the outline around an element with JavaScript?

Arushi

Arushi

Updated on 23-Jun-2020 13:35:41

242 Views

To set the outline style, use the outlineStyle property. The outline can be solid, dotted, dashed, etc.ExampleYou can try to run the following code to set the style of the outline around an element with JavaScript −Live Demo                    #box ... Read More

How to set or return the number of columns an element should be divided into with JavaScript?

Arushi

Arushi

Updated on 23-Jun-2020 11:45:39

143 Views

To divide a div into three columns, use the columnCount property. Set the column count and divide the div.ExampleYou can try to run the following code to return the numbers of columns an element is to be divided into with JavaScript −Live Demo           Click ... Read More

What is the usage of in operator in JavaScript?

Arushi

Arushi

Updated on 23-Jun-2020 07:41:06

147 Views

The operator is used in JavaScript to check whether a property is in an object or not.ExampleYou can try to run the following code to learn how to use in operator in JavaScript −Live Demo                    var emp = {name:"Amit", ... Read More

How can we create a MySQL recurring event that executes after a specified time period and ends after a specified time period?

Arushi

Arushi

Updated on 22-Jun-2020 12:40:27

363 Views

As we know that recurring event means that it will be executed after regular time of interval and expires at the specified time. To illustrate the creation of such kind of events we are using the following example in which we are creating an event which will execute after every ... Read More

How is Java strictly pass by value?

Arushi

Arushi

Updated on 22-Jun-2020 11:32:45

324 Views

Call by Value means calling a method with a parameter as value. Through this, the argument value is passed to the parameter.While Call by Reference means calling a method with a parameter as a reference. Through this, the argument reference is passed to the parameter.In call by value, the modification ... Read More

How to measure the time taken by a function in Java?

Arushi

Arushi

Updated on 22-Jun-2020 11:30:52

355 Views

java.lang.System.currentTimeMillis() method can be used to compute the time taken by a function in java. Trick is simple. Get the before time and after time using currentTimeMillis() where before time is the time when method is invoked and after time is when method has executed. See the example below −Example Live ... Read More

Advertisements