Program for ComputingMethods on Java