Java program to check if a given array can form harmonic progression
import java . util . * ; class GFG { static boolean checkIsHP ( double [ ] arr ) { int n = arr . length ; if ( n == 1 ) return true ;