Nishtha Thakur

Nishtha Thakur

398 Articles Published

Articles by Nishtha Thakur

Page 40 of 40

Difference between while(1) and while(0) in C/C++

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 4K+ Views

Here we will see what are the differences between while(1) and while(0) in C or C++. The while is a loop of C or C++. Using this loop we can check one condition, and the statements inside the loop will be executed while the condition is true.The while(1) or while(any non-zero value) is used for infinite loop. There is no condition for while. As 1 or any non-zero value is present, then the condition is always true. So what are present inside the loop that will be executed forever. To come out from this infinite loop, we have to use ...

Read More

How to add a value in Octet Tuple in Java

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 143 Views

To add value in Octet Tuple, you need to use the addAtX() method. Here, X is the index wherein you need to add the value i.e. to add value at index 0, use the addAt0() and value as a parameter.Let us first see what we need to work with JavaTuples. To work with Octet class in JavaTuples, you need to import the following package −import org.javatuples.Octet;Note − Download JavaTuples Jar library to run JavaTuples program. If you are using Eclipse IDE, then Right Click Project -> Properties -> Java Build Path -> Add External Jars and upload the downloaded JavaTuples ...

Read More

How to find Second most repeated string in a sequence in android?

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 251 Views

This example demonstrate about How to find Second most repeated string in a sequence 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.     In the above code, we have taken a text view to show the second most sequence in an array.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.TextView; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; ...

Read More

Iterate through Octet Tuple in Java

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 195 Views

You can easily iterate through Octet Tuple using a for the loop. Let us first see what we need to work with JavaTuples. To work with Octet class in JavaTuples, you need to import the following package −import org.javatuples.Octet;Note − Download JavaTuples Jar library to run JavaTuples program. If you are using Eclipse IDE, then Right Click Project -> Properties -> Java Build Path -> Add External Jars and upload the downloaded JavaTuples jar file. Refer the below guide for all the steps to run JavaTuples −Steps − How to run JavaTuples program in EclipseThe following is an example to ...

Read More

Operations on struct variables in C

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 2K+ Views

Here we will see what type of operations can be performed on struct variables. Here basically one operation can be performed for struct. The operation is assignment operation. Some other operations like equality check or other are not available for stack.Example#include typedef struct { //define a structure for complex objects    int real, imag; }complex; void displayComplex(complex c){    printf("(%d + %di)", c.real, c.imag); } main() {    complex c1 = {5, 2};    complex c2 = {8, 6};    printf("Complex numbers are:");    displayComplex(c1);    displayComplex(c2); }OutputComplex numbers are: (5 + 2i) (8 + 6i)This works fine as ...

Read More

How to Sort a stack in android?

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 170 Views

This example demonstrate about How to Sort a stack 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.     In the above code, we have taken a text view to show sorted stack.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import java.util.Collections; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.Stack; public class MainActivity extends AppCompatActivity {   ...

Read More

What is the difference between C++0x and C++11?

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 585 Views

C++ and C Standards are usually named after the year they are published in. For example, in C++, the original Standard was published in 1998, so it is called C++98, and its first correction, published in 2003 is called C++03.For the next revision, it was supposed that the next Standard after would be done by 2008, but since it was uncertain, it was named C++0x, where the x stood for either 8 or 9. Though planning shifted and it is now called C++11. So, C++0x was the name for the standard before it was published. Once it was finalized in ...

Read More

Architecture for Deploying SAP HR module

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 194 Views

It would be good to separate the HR from other modules as not only the load and usage is high on HRmodule but the business and security requirements differ for HR module as well.In such scenarios, other module can be customized in terms of security and configured as per theirneeds. Also separating the Central instance and database to different machine is a very commonapproach but can be avoided too by configuring the Central instance to adjust the load.

Read More
Showing 391–398 of 398 articles
« Prev 1 36 37 38 39 40 Next »
Advertisements