Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
Computer Networks Java Java-Networking

Finding IP address of a URL in Java

Prerequisite: InetAddress getByName() : Returns the InetAddress of the given host. If the host is a literal IP address, then only its validity is checked. Fetches pub...
Computer Networks Java Java Programs

Implementing Checksum Using Java

Checksum is an error-detecting technique that can be applied to message of any length. It is used mostly at the network and transport layers of the TCP/IP protocol su...
Java Mathematical Fibonacci

Large Fibonacci Numbers in Java

Given a number n, find n-th Fibonacci Number. Note that n may be large. Examples: Input : 100 Output : 218922995834555169026 Input : 500 Output : 861682916002384507...
Java Java - util package Java-Arrays

Arrays.sort() in Java with examples

sort() method is a java.util.Arrays class method. Syntax: public static void sort(int[] arr, int from_Index, int to_Index) arr - the array to be sorted from_Index ...
Java Java - util package Java-Collections

Collections.sort() in Java with Examples

java.util.Collections.sort() method is present in java.util.Collections class. It is used to sort the elements present in the specified list of Collection in ascendi...
Java Sorting Technical Scripter

Serial Sort v/s Parallel Sort in Java

We often need to sort array while programming. For this, we use inbuilt method provided by Java in Arrays class i.e sort(). sort() method uses merge sort or Tim Sort ...
Java Binary Search Java - util package

Arrays.binarySearch() in Java with examples Set 1

Arrays.binarySearch() is the simplest and most efficient method to find an element in a sorted array in Java Declaration: public static int binarySearch(data_type arr...
Java Java - util package Java-Arrays

Arrays.binarySearch() in Java with examples Set 2 (Search in subarray)

Arrays.binarySearch()| Set 1 covers how to to find an element in a sorted array in Java. This set will cover “How to Search a key in an array within given rang...
Java Binary Search Java - util package

Collections.binarySearch() in Java with Examples

java.util.Collections.binarySearch() method is a java.util.Collections class method that returns position of an object in a sorted list. // Returns index of key in so...
Advanced Data Structure Java Trie

Longest prefix matching – A Trie based solution in Java

Given a dictionary of words and an input string, find the longest prefix of the string which is also a word in dictionary. Examples: Let the dictionary contains the f...

Subscribe to Our Newsletter