Samual Sam has Published 2491 Articles

Java Program to concatenate a String and Integers

Samual Sam

Samual Sam

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

8K+ Views

To concatenate a String and some integer values, you need to use the + operator. Let’s say the following is the string. String str = "Demo Text"; Now, we will concatenate integer values. String res = str + 1 + 2 + 3 + 4 + 5; ... Read More

Intersection of two arrays in Java

Samual Sam

Samual Sam

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

2K+ Views

The intersection of the two arrays results in those elements that are contained in both of them. If an element is only in one of the arrays, it is not available in the intersection. An example of this is given as follows − Array 1 = 1 2 ... Read More

Introduction to Graph Algorithms

Samual Sam

Samual Sam

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

541 Views

The graph is a non-linear data-structure, which consists finite number of nodes and a set of edges which are used to connect a pair of nodes. The graphs are used to solve some real-time problems to represent network etc. In different social networks, the graphs are used. In this Section ... Read More

Compare Two Java long Arrays

Samual Sam

Samual Sam

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

417 Views

To compare two Java long arrays in Java, use Arrays.equals() method. Let’s say we have the following long arrays. long[] arr1 = new long[] { 767, 568, 555, 897, 678 }; long[] arr2 = new long[] { 456, 756, 555, 999, 678}; long[] arr3 = new long[] { 767, ... Read More

Hexadecimal integer literal in Java

Samual Sam

Samual Sam

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

5K+ Views

For Hexadecimal, the 0x or 0X is to be placed in the beginning of a number. Note − Digits 10 to 15 are represented by a to f (A to F) in Hexadecimal Here are some of the examples of hexadecimal integer literal declared and initialized as int. int ... Read More

Reading and Writing to text files in Python

Samual Sam

Samual Sam

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

1K+ Views

Like other languages, Python provides some inbuilt functions for reading, writing, or accessing files. Python can handle mainly two types of files. The normal text file and the binary files. For the text files, each lines are terminated with a special character '' (It is known as EOL or ... Read More

Frequency Division Multiplexing

Samual Sam

Samual Sam

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

36K+ Views

Frequency division multiplexing (FDM) is a technique of multiplexing which means combining more than one signal over a shared medium. In FDM, signals of different frequencies are combined for concurrent transmission. Concept and Process In FDM, the total bandwidth is divided to a set of frequency bands that ... Read More

Precision Handling in Python

Samual Sam

Samual Sam

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

3K+ Views

Python can handle the precision of floating point numbers using different functions. Most functions for precision handling are defined in the math module. So to use them, at first we have to import the math module, into the current namespace. import math Now we will see some of ... Read More

Define integer literals as octal values in Java

Samual Sam

Samual Sam

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

3K+ Views

Literals with a leading zero are octal literals. Any number prefixed with a 0 is considered octal. Octal numbers can only use digits 0-7, just like decimal can use 0-9, and binary can use 0-1. To define integer literals as octal value in Java is effortless. Here is the declaration ... Read More

Code Division Multiplexing

Samual Sam

Samual Sam

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

8K+ Views

Code division multiplexing (CDM) is a multiplexing technique that uses spread spectrum communication. In spread spectrum communications, a narrowband signal is spread over a larger band of frequency or across multiple channels via division. It does not constrict bandwidth’s digital signals or frequencies. It is less susceptible to interference, thus ... Read More

Advertisements