Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C-Data Types cpp-data-types

Integer Promotions in C

Some data types like char , short int take less number of bytes than int, these data types are automatically promoted to int or unsigned int when an operation is per...
Heap Mathematical Adobe

Median in a stream of integers (running integers)

Given that integers are read from a data stream. Find median of elements read so for in efficient way. For simplicity assume there are no duplicates. For example, let...
C C++ Mathematical

Check for integer overflow on multiplication

Given two integer a and b, find whether their product (a x b) exceed the signed 64 bit integer or not. If it exceed print Yes else print No. Examples: Input : a = 1...
C++ cpp-puzzle CPP

A creative C++ program to Zoom digits of an integer

Write a C (or C++) program to ZOOM (magnify) the digits of an integer. It should take an integer from the user and display each digit of the integer in magnified form...
Java Java

Comparison of Autoboxed Integer objects in Java

When we assign an integer value to an Integer object, the value is autoboxed into an Integer object. For example the statement “Integer x = 10” creates...
Java School Programming Java-Functions

String to Integer in Java – parseInt()

While operating upon strings, there are times when we need to convert a number represented as a string into an integer type. The method generally used to convert Stri...
Java School Programming base-conversion

Different ways for Integer to String Conversions In Java

Convert using Integer.toString(int) The Integer class has a static method that returns a String object representing the specified int parameter. Syntax : public stat...
Java Technical Scripter Java-Array-Programs

Check if a value is present in an Array in Java util.Arrays vs reflect.Array in Java with Examples Remove all occurrences of an element from Array in Java How do Dynamic arrays work? Maximum number of Unique integers i

2.5 Given an array, the task is to check whether a certain element is present in this Array or not, in Java. Examples: Input: arr...
Java java-intstream java-stream

Generate Infinite Stream of Integers in Java IntStream codePoints() method in Java with Examples Program to convert IntStream to String in Java Java Program to convert Character Array to IntStream Program to convert St

Given the task is to generate an infinite sequential unordered stream of integers in Java. Recommended: Please try your approach on {IDE} first, before...
Java Technical Scripter java-stream

10 Ways to Create a Stream in Java Reverse elements of a Parallel Stream in Java How to get ArrayList from Stream in Java 8 Generate Infinite Stream of Double in Java Generate Infinite Stream of Integers in Java

The Stream API, introduced in Java 8, it is used to process collections of objects. Stream is a sequence of objects, that supports many different&#x202...

Subscribe to Our Newsletter