Java Program Coding With Output Vs Input Of Energy