Java Program Using Two Center