Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Arrays methods in java

// Java program to demonstrate
// Arrays.compareUnsigned() method
 
import java.util.Arrays;
 
public class Main {
    public static void main(String[] args)
    {
 
        // Get the Arrays
        int intArr[] = { 10, 20, 15, 22, 35 };
 
        // Get the second Arra
        int intArr1[] = { 10, 15, 22 };
 
        // To compare both arrays
        System.out.println("Integer Arrays on comparison:
                           + Arrays.compareUnsigned(intArr, intArr1));
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Arrays #methods #java
ADD COMMENT
Topic
Name
5+9 =