- Friday, July 9, 2010, 9:00
- How-To, Java
- 1,678 views
Here is a small but very useful tip that every Java programmer should be aware of. Have you ever tried sorting arrays in Java? Well, java.util.Arrays class has built in method to make your job easy. You can use following method to sort any array in Java.
import java.util.Arrays;
...
...
Arrays.sort (int )
Arrays.sort (float )
Arrays.sort (long )
...
Let us check an example were we will sort an array of ...
Full story
- Monday, June 29, 2009, 14:08
- Java
- 9,308 views
A lot of time I have to convert ArrayList to Arrays in my Java program. Although this is a simple task, many people don't know how to do this and end up in iterating the java.util.ArrayList to convert it into arrays. I saw such code in one of my friends work and I thought to share this so that people don't end up writing easy ...
Full story