  We propose a novel Josephson device in which 0 and $\pi$ states are
controlled by an electrical current. In this system, the $\pi$ state appears in
a superconductor/normal metal/superconductor junction due to the non-local spin
accumulation in the normal metal which is induced by spin injection from a
ferromagnetic electrode. Our proposal offers not only new possibilities for
application of superconducting spin-electronic devices but also the in-depth
understanding of the spin-dependent phenomena in magnetic nanostructures.
