text: Java program to count number of distinct pairs possible from the two arrays such that element selected from one array is always greater than the one selected from the other array
code: import java . util . * ; class GFG {