Smita Kapse has Published 558 Articles

How to remove partial text from value in MySQL?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

463 Views

In order to remove partial text from value, you can use REPLACE() from MySQL. Following is the syntax −update yourTableName set yourColumnName = replace(yourColumnName ,'yourValue ', '' );Let us first create a table −mysql> create table removePartialTextDemo    -> (    -> JavaVersionDetails varchar(100)    -> ); Query OK, 0 ... Read More

How to change date and time format in Android sqlite?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

552 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

How to use isEmpty() in Android textview?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

1K+ Views

This example demonstrate about How to use isEmpty() in Android textview.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 get current address from Network provider in android?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

279 Views

This example demonstrate about How to get current address 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

The indexOf() method of AbstractSequentialList in Java

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

67 Views

The indexOf() method is inherited from the AbstractList class. It is used to return the index of the first occurrence of the specified element in this list. If the list is empty, it returns -1.The syntax is as follows −public int indexOf(Object ele)Here, ele is the element for which you ... Read More

How to get device make and model on iOS?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

2K+ Views

When we talk about the device make, we refer to the Phone manufacturer (e.g. Apple, Samsung, Nokia and so on) and device model is generally the specific product such as iPhone, iPad/TAB etc.Any mobile devices will be categorized using make and model only.Now let’s understand how do I get device ... Read More

Search for a value in Java LabelValue Tuple

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

61 Views

To search for a value in the LabelValue tuple in Java, use the contains() method. It returns a boolean value. TRUE is returned if the value exists, else FALSE is the return value. Let us first see what we need to work with JavaTuples. To work with LabelValue class in ... Read More

How to clear console in MongoDB?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

776 Views

To clear console in MongoDB, you can use any of the following two syntaxes.The first syntax is as follows, which is the usage of keyboard shortcut −Ctrl + LAfter pressing the above key, you can clear console in MongoDB.The second syntax is as follows −clsTo understand the above syntaxes, let ... Read More

DoubleStream.Builder accept() method in Java

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

72 Views

The accept() method of the DoubleStream class in Java adds an element to the stream being built.The syntax is as follows −void accept(double ele)Here, ele is the element to be inserted into the stream.To use the DoubleStream.Builder class in Java, import the following package −import java.util.stream.DoubleStream;The following is an example ... Read More

What is KeyValue class in JavaTuples?

Smita Kapse

Smita Kapse

Updated on 30-Jul-2019 22:30:25

64 Views

A KeyValue class is a Tuple of 2 elements i.e. a key and value. It is in the JavaTuples library. The following is the declaration −public final class KeyValue extends Tuple implements IValueKey, IValueValueLet us first see what we need to work with JavaTuples. To work with KeyValue class in ... Read More

Advertisements