Nitya Raut has Published 276 Articles

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

393 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

How do I create a random alpha-numeric string using C++?

Nitya Raut

Nitya Raut

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

688 Views

In this section we will see how to generate a random alphanumeric string using C++. Here we are providing lowercase letters, uppercase letters and numbers (0-9). This program takes the characters randomly, then creates the random string.Input: Here we are giving the string length Output: A random string of that ... Read More

C++ Program to Implement Next_Permutation in STL

Nitya Raut

Nitya Raut

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

259 Views

Next_permutation in STL is used to rearrange the elements in the range [first, last] into the next lexicographically greater permutation. A permutation is each one of the N! possible arrangements the elements can take. This is C++ program to implement Next_permutation in STL.AlgorithmBegin    Define one integer array variable elements[]. ... Read More

How to call an existing function in a database using JDBC API?

Nitya Raut

Nitya Raut

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

5K+ Views

You can call a function using CallableStatement object just like stored procedures, to call a function using a JDBC program you need to.Connect to the database.Create a PreparedStatement object and to its constructor pass the function call in String format.Set values to the place holders.Execute the Callable statement.Following is the ... Read More

How to use size() in android PriorityBlockingQueue?

Nitya Raut

Nitya Raut

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

49 Views

Before getting into the example, we should know what PriorityBlockingQueue is. It is an unbounded queue and follows the same order as a priority queue. The main usage of priority blocking queue is, it going to handle out of memory error.This example demonstrates about How to use size() in android ... Read More

How to get current Wi-Fi mac 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 mac 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

C++ Program to Implement Prev_Permutataion in STL

Nitya Raut

Nitya Raut

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

74 Views

Prev_permutation in STL is used to rearrange the elements in the range [first, last] into the previous lexicographically smaller permutation. A permutation is each one of the N! possible arrangements the elements can take. Here is a C++ program to implement Prev_permutation in STL.AlgorithmBegin    Define one integer array variable ... Read More

Advertisements