Java Examples
7 Robust Methods to Convert Long to Integer in Java
Explore the insightful guide on how to convert long to integer in Java. Discover various methods, each detailed with thoughtful techniques and considerations, …
How to get sublist from a list in Java [Practical Examples]
In order to get sublist either in an ArrayList or LinkedList, we have to use the sublist() method which is a method of AbstractList class.
How to split String into Array [Practical Examples]
In this tutorial we will cover multiple examples to understand how to split string into array for different scenarios
4 ways to convert char to int in Java [Practical Examples]
In this tutorial, we covered four different approaches to convert char to int in Java, Using ASCII Values, Integer.parseInt() method, …
How to return an Array in Java [Practical Examples]
There are three different ways to return an array from a function in Java as listed below: Return an array of primitive type, Return an array of objects, Return …
