Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
Java
9.4K+ articles
Java-Functions
4.2K+ articles
java-guava
153+ articles
Guava-Functions
71+ articles
Guava-Longs
14 posts
Recent Articles
Java Guava | Longs.indexOf(long[] array, long target) method with Examples
Last Updated: 11 July 2025
Longs.indexOf(long[] array, long target) method of Guava's Longs Class accepts two parameters array and target. If the target exists within the array, the method returns t...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.asList() method with Examples
Last Updated: 11 July 2025
The Longs.asList() method of Guava's Longs Class accepts a long array as a parameter and returns a list which has the fixed size. The returned list is backed by the long a...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.concat() method with Examples
Last Updated: 11 July 2025
The concat() method of Longs Class in the Guava library is used to concatenate the values of many arrays into a single array. These long arrays to be concatenated are spec...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.join() method with Examples
Last Updated: 11 July 2025
The join() method of Longs Class in the Guava library is used to combine or join all the given long values separated by a separator. These long values are passed a paramet...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.lastIndexOf() method with Examples
Last Updated: 11 July 2025
The lastIndexOf() method of Longs Class in Guava library is used to find the last index of the given long value in a long array. This long value to be searched and the lon...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.toArray() method with Examples
Last Updated: 11 July 2025
The toArray() method of Longs Class in the Guava library is used to convert the long values, passed as the parameter to this method, into a Long Array. These long values a...
read more
Java
Java-Functions
java-guava
Guava-Longs
Java Guava | Longs.checkedSubtract(long a, long b) method with Examples
Last Updated: 11 July 2025
The checkedSubtract(long a, long b) is a method of Guava's LongMath Class which accepts two parameters a and b, and returns their difference.Syntax:public static long chec...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.max() method with Examples
Last Updated: 11 July 2025
Longs.max() is a method of Longs Class in Guava library which is used to find the greatest value present in an array. The value returned by this method is the largest long...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.min() method with Examples
Last Updated: 11 July 2025
Longs.min() is a method of Longs Class in Guava library which is used to find the least value present in an array. The value returned by this method is the smallest long v...
read more
Java
java-guava
Guava-Functions
Guava-Longs
Java Guava | Longs.contains() method with Examples
Last Updated: 11 July 2025
The Longs.contains() method of Guava's Longs Class is used to check if a value i.e. target is present in the array or not. This target value and the array are taken as par...
read more
Java
Java-Functions
java-guava
Guava-Longs
Java Guava | Longs.factorial(int n) method with Examples
Last Updated: 11 July 2025
The factorial(int n) method of Guava's LongMath Class returns the product of the first n positive integers, which is n!.Syntax :public static long factorial(int n)Paramete...
read more
Java
Java-Functions
java-guava
Guava-Longs
Java Guava | Longs.hashCode() method with Examples
Last Updated: 11 July 2025
Longs.hashCode() is a method of Longs Class in Guava Library which is used to return a hash code for a long value. The hashCode is an unique integer value that is calculat...
read more
Java
Java-Functions
java-guava
Guava-Longs
Java Guava | Longs.compare() method with Examples
Last Updated: 11 July 2025
Longs.compare() method of Guava's Longs Class is used to compare the two specified long values. These values are passed as the parameter and the result of comparison is fo...
read more
Java
Java-Functions
java-guava
Guava-Longs
Java Guava | Longs.indexOf(long[] array, long[] target) method with Examples
Last Updated: 11 July 2025
Longs.indexOf(long[] array, long[] target) method of Guava's Longs Class accepts two parameters array and target. If the target exists within the array, the method returns...
read more
Java
java-guava
Guava-Functions
Guava-Longs