Пример #1
0
 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;
 }
Пример #2
0
 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;
 }