Vrundesha Joshi has Published 343 Articles

How to pass data from one fragment to another fragment in android?

Vrundesha Joshi

Vrundesha Joshi

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

4K+ Views

This example demonstrate about How to pass data from one fragment to another fragment in androidStep 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 save an Android Activity state using save instance state?

Vrundesha Joshi

Vrundesha Joshi

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

649 Views

This example demonstrate about How to save an Android Activity state using save instance stateStep 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 Represent Graph Using Linked List

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

The incidence matrix of a graph is another representation of a graph to store into the memory. This matrix is not a square matrix. The order of the incidence matrix is V x E. Where V is the number of vertices and E is the number of edges in the ... Read More

C++ Program to Check the Connectivity of Undirected Graph Using BFS

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any node, which is not visited, then the graph is not connected.For the undirected graph, we will select one node and traverse from it.In this case ... Read More

How do I declare a 2d array in C++ using new

Vrundesha Joshi

Vrundesha Joshi

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

243 Views

A dynamic 2D array is basically an array of pointers to arrays. Here is a diagram of a 2D array with dimenation 3 x 4.AlgorithmBegin    Declare dimension of the array.    Dynamic allocate 2D array a[][] using new.    Fill the array with the elements.    Print the array. ... Read More

How to update RecyclerView Adapter Data?

Vrundesha Joshi

Vrundesha Joshi

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

729 Views

This example demonstrate about How to update RecyclerView Adapter DataStep 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 connect to a MongoDB database using a JDBC program?

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document.Before you start connecting MongoDB in you need to make sure that you have MongoDB JDBC driver. If not, download the jar from the path Download mongo.jar ... Read More

Does C++ support Variable Length Arrays

Vrundesha Joshi

Vrundesha Joshi

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

193 Views

C++ does not support variable length arrays. The C++11 standard mentions array size as a constant-expression.So if we write a program in C++ like:void displayArray(int n) { int arr[n]; // ...... } int main() { displayArray(7); } It will not work.

Why doesn't C++ support functions returning arrays

Vrundesha Joshi

Vrundesha Joshi

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

90 Views

Let us consider this following program, Live Demo#include using namespace std; int* Array() {    int a[100];    a[0] = 7;    a[1] = 6;    a[2] = 4;    a[3] = 3;    return a; } int main() { int* p = Array(); cout

Print with your own font using Python?

Vrundesha Joshi

Vrundesha Joshi

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

309 Views

In this, we are going to see how differently we can display our text in a very unique way using python.So let suppose I want to display “Hello, Python” and out many ways I could display my text/string (“Hello, Python”) like:Input“Hello, Python”Output 1___ ___ .__ .__ / | \ ____ ... Read More

Advertisements