public Abs toAbs(String real, String immaginary) { Abs abs = new Abs(); Complex complex = new Complex(); complex.setImmaginary(Float.parseFloat(immaginary)); complex.setReal(Float.parseFloat(real)); abs.setComplex(complex); return abs; }
public Abs toAbs(float real, float immaginary) { Abs abs = new Abs(); Complex complex = new Complex(); complex.setImmaginary(immaginary); complex.setReal(real); abs.setComplex(complex); return abs; }