Nitya Raut has Published 272 Articles

How to use unmodifiableSet in Android?

Nitya Raut

Nitya Raut

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

101 Views

This example demonstrate about How to use unmodifiableSet 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 get current user is system user or not in android?

Nitya Raut

Nitya Raut

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

1K+ Views

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

Convert an integer to a hex string in C++

Nitya Raut

Nitya Raut

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

15K+ Views

In this program we will see how to convert an integer to hex string. To convert an integer into hexadecimal string we can follow mathematical steps. But in this case we have solved this problem using simple trick.In C / C++ there is a format specifier %X. It prints the ... Read More

How to use removeLastOccurrence() in android LinkedBlockingDeque?

Nitya Raut

Nitya Raut

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

48 Views

Before getting into the example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to a constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

C++ Program to Implement Map in STL

Nitya Raut

Nitya Raut

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

3K+ Views

A Map is an associative container that store elements in a mapped fashion. Each element has a key value and a mapped value. No two mapped values can have same key values.Functions are used here:m::find() – Returns an iterator to the element with key value ‘b’ in the map if ... Read More

How to get current location in android web view?

Nitya Raut

Nitya Raut

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

2K+ Views

This example demonstrate about How to get current location in android web view.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 call a stored procedure that accepts input parameters, using JDBC program?

Nitya Raut

Nitya Raut

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

3K+ Views

A. Stored procedures are sub routines, segment of SQL statements which are stored in SQL catalog. All the applications that can access Relational databases (Java, Python, PHP etc.), can access stored procedures.Stored procedures contain IN and OUT parameters or both. They may return result sets in case you use SELECT ... Read More

Program to find the Area of an Ellipse using C++

Nitya Raut

Nitya Raut

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

413 Views

Here we will see how to get the area of an ellipse using C++. The Ellipse has different parts. These are like below.Key-pointsDescriptionCenterThe center of the ellipse. It is also center of the line segments which links two foci.Major AxisThe longest diameter of an ellipsenmembThis is the number of elements, ... Read More

How to load html content in android webview?

Nitya Raut

Nitya Raut

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

5K+ Views

This example demonstrate about How to load html content in android webview.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 Wi-Fi IP address in android?

Nitya Raut

Nitya Raut

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

1K+ Views

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

Advertisements