Nitya Raut has Published 272 Articles

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

Nitya Raut

Nitya Raut

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

712 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

271 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

6K+ 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

57 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

76 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

Parsing a comma-delimited std::string in C++

Nitya Raut

Nitya Raut

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

6K+ Views

In this program we will see how to parse comma-delimited string in C++. We will put a string where some texts are present, and they are delimited by comma. After executing this program, it will split those strings into a vector type object.To split them we are using the getline() ... Read More

Best replacement of onItemClickListner in android recyclerview?

Nitya Raut

Nitya Raut

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

83 Views

This example demonstrates about Best replacement of onItemClickListner in android recyclerviewStep 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 information about USB mounted or not in android?

Nitya Raut

Nitya Raut

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

468 Views

This example demonstrate about How to get information about USB mounted 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 set fit webview screen in android?

Nitya Raut

Nitya Raut

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

3K+ Views

This example demonstrate about How to set fit webview screen 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