Please help writebelow programs in JAVA.
Question1
Write a Java methodthat takes an integer array. The method rearranges the array byseparating even and odd numbers of an given array of integers. Allodd numbers must be placed first, and then even numbers. The methodshould check if the argument is at least 4 integers digits
Hint: Here is themethod header void reArrange(int[]intArr)
Demonstrate the usageof this array in main
Question2
Write a program thatcreates a two-dimensional array initialized with test data. Use anydata type you wish. The program should have the following staticmethods:
getTotal. This function should accept a two-dimensional array
PayPal Gateway not configured
PayPal Gateway not configured