Square off the end of the copper pipes where you will be installing the compression valves, if needed. Clamp a pipe cutter around the copper pipe and circle it around the pipe until the end is cut off.
Sand down the edges of the pipe with a wire brush to remove any burrs.
Apply flux to the outside of the copper pipe and the inside of the compression fitting.
Slip the compression fitting over the end of the copper pipe. Use a plumber's torch to heat solder along the seam between the pipes and seal the connection.
Wrap the compression fitting threads with plumber's tape.
Screw the washing machine supply valves on top of the compression fittings. Tighten them with a wrench.
Connect the water supply hoses from the washing machine to the supply valves by tightening the supply hose coupings over the outlets. Tighten the couplings with a pair of pliers.