Arushi has Published 152 Articles

Swap two Strings without using third user defined variable in Java

Arushi

Arushi

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

211 Views

In order to swap two strings i.e interchange the content of two strings we will use sub string method of string class in Java.First of all get the length of both strings before making any change in any of string.Now modify one string as concatenate both strings and assign to ... Read More

Python program to find k'th smallest element in a 2D array

Arushi

Arushi

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

372 Views

One n×n user input integer matrix is given and the value of k. Our task is to find out k'th smallest element in a 2D array. Here we use heapq mudule.Heap queue (or heapq) in Python. In Python, it is available using “heapq” module. The technique of this module ... Read More

Python program to check whether two lists are circularly identical

Arushi

Arushi

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

598 Views

Here two lists are given. Our task is to check and found weather two given lists are circularly identical or not. Example Input : A = [100, 100, 10, 10, 100] B = [100, 100, 100, 10, 10] Output : True ... Read More

Math class methods in Java Programming

Arushi

Arushi

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

359 Views

The java.lang.Math class contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. Class Declaration Following is the declaration for java.lang.Math class − public final class Math extends Object Field Following are the fields for java.lang.Math class ... Read More

Print a 2 D Array or Matrix in Java Programming

Arushi

Arushi

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

1K+ Views

In this post we will try to print an array or matrix of numbers at console in same manner as we generally write on paper. For this the logic is to access each element of array one by one and make them print separated by a space and when row ... Read More

Global variables in Java

Arushi

Arushi

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

720 Views

There is no global variables support in Java. Static variables can be used as an alternate solution for global variables.

Named Capturing groups in Java Regex

Arushi

Arushi

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

118 Views

Java Regex Capturing Groups

What is the scope of default access modifier in Java?

Arushi

Arushi

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

983 Views

Default access modifier means we do not explicitly declare an access modifier for a class, field, method, etc. The scope of the default access modifier lies within the package. When a class or its members associated with default access modifier then. Example Variables and methods can be declared without any ... Read More

Using SAP BAPI API’s to extract information from client system

Arushi

Arushi

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

456 Views

BAPI is an abbreviation for Business Application Programming Interface.BAPI’s are proprietary interfaces of SAP. These provide standard access to SAP solution with all the semantic checks already present. Using BAPI interfaces, we can perform both synchronous and asynchronous processing of data.

Can access modifiers be used for local variables in Java?

Arushi

Arushi

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

582 Views

Yes, a local variable can be public, private, protected or default.

Advertisements