Java program to change one element of an array such that the resulting array is in arithmetic progression .
import java . util . Arrays ; class AP { static void makeAP ( int arr [ ] , int n ) { int initial_term , common_difference ;