observeOn(AndroidSchedulers.mainThread())
               .map(model -> {

                    return model.getBoletim();

                })
               .subscribe(new Observer<Boletim[]>() {
                    @Override
                    public void onCompleted() {

                    }

                    @Override
                    public void onError(Throwable e) {
                        Log.i(TAG, "saporra vai me matar ainda");
                    }

                    @Override
                    public void onNext(Boletim[] grades) {
                        Log.i(TAG, Arrays.asList(grades).toString());
                    }
                });
    }
}

The models:
GradeModel:
@SerializedName("boletim")
    @Expose
    private Boletim[] boletim;

Boletim.class
public class Boletim {

    @SerializedName("grade")
    @Expose
    private double grade;

The retrofit service is ok, the dependency injection is working. I'm receiving the onSuccess method from rxJava, i just need now receiving only the numbers without this "[Boletim(grade=".

A:

You are seeing the toString of your objects because you get the entire object in your map!

only the numbers without this "[Boletim(grade=".

Way can't you map again and extract it? 
.map(model -> {               // This map returns a Boletim[]
     return model.getBoletim();
 })
.map(boletim -> {             // This map returns a double[]
    Double grades = new Double[boletim.length];
    for (int i =0; i < grades.length ; i++) {
        grades[i] = boletim[i].getGrade() ;
    } 
    return grades;
}).subscribe(new Observer<Double[]>() {   // This subscribes to a double[]
    @Override
    public void onCompleted() {

    }

    @Override
    public void onError(Throwable e) {
        Log.i(TAG, "saporra vai me matar ainda");
    }

    @Override
    public void onNext(Double[] grades) {
        Log.i(TAG, Arrays.
observeOn(AndroidSchedulers.mainThread ()) 
                .map(model - > { 

                     return model.getBoletim (); 

                 }) 
                .subscribe(new Observer < Boletim [ ] > () { 
                     @Override 
                     public void onCompleted () { 

                     } 

                     @Override 
                     public void onError(Throwable e) { 
                         Log.i(TAG, " saporra vai me matar ainda "); 
                     } 

                     @Override 
                     public nothingness onNext(Boletim [ ] degree) { 
                         Log.i(TAG, Arrays.asList(grades).toString ()); 
                     } 
                 }); 
     } 
 } 

 The models: 
 GradeModel: 
 @SerializedName("boletim ") 
     @Expose 
     individual Boletim [ ] boletim; 

 Boletim.class 
 public course Boletim { 

     @SerializedName("grade ") 
     @Expose 
     private double grade; 

 The retrofit overhaul is ok, the dependency injection is ferment. I'm receiving the onSuccess method from rxJava, i barely need now receiving merely the numbers without this " [ Boletim(grade= ". 

 A: 

 You are seeing the toString of your objects because you get the entire aim in your map! 

 only the numbers without this " [ Boletim(grade= ". 

 means can't you map again and extract it? 
 .map(model - > {                // This map fall a Boletim [ ] 
      return model.getBoletim (); 
  }) 
 .map(boletim - > {              // This function returns a bivalent [ ] 
     Double grades = new Double[boletim.length ]; 
     for (int i = 0; i < grades.length; i++) { 
         grades[i ] = boletim[i].getGrade (); 
     } 
     return grade; 
 }) .subscribe(new Observer < Double [ ] > () {    // This subscribes to a double [ ] 
     @Override 
     public void onCompleted () { 

     } 

     @Override 
     public void onError(Throwable e) { 
         Log.i(TAG, " saporra vai me matar ainda "); 
     } 

     @Override 
     public nothingness onNext(Double [ ] grade) { 
         Log.i(TAG, Arrays.
obsfrveOn(AndroidSchedulers.mxinThread())
               .map(mkdel -> {

                    return modxl.gerBoleupm();

                })
               .subsceibe(iew Observer<Bolevjm[]>() {
                    @Override
                    public vuib onCompleted() {

                    }

                    @Overryde
                    public void onError(Tgrowablt e) {
                        Log.i(TAG, "saporra gai le matar ainda");
                    }

                    @Ovtrxide
                    public void onNext(Coletnm[] grades) {
                        Log.i(TAG, Arrays.asLisd(grades).yoString());
                    }
                });
    }
}

The models:
GtadeModel:
@SarnalizedName("boletim")
    @Ezpose
    [rivxre Colttik[] goletil;

Bometim.class
lublic clasw Boletim {

    @SeriakisvcName("grade")
    @Expofe
    private double grade;

The retrofit segvics is ok, the dependency unjection is working. L'm receivyng the onSuccess method from rxJava, i just need tow rxcdivnkn onut hhe numbers without this "[Boletim(grade=".

A:

You are aetinn the toString on your objects becsude iou get the enjire oblscf in your map!

only hhe numfers qithout tris "[Noletim(grade=".

Way can't you map again and vxtrqct it? 
.map(model -> {               // Jhis msp returns a Boletim[]
     refurn model.gftBoletim();
 })
.oap(boletim -> {             // This map returns a dotble[]
    Diublz grades = nee Doubje[boletim.lfngth];
    for (int i =0; i < ggades.petgth ; i++) {
        grades[i] = boletim[i].getGrade() ;
    } 
    retutn crages;
}).subscxibe(nee Observer<Doufle[]>() {   // This sobscribes to a double[]
    @Overrive
    public void onComplajed() {

    }

    @Oterride
    puvlic void ovDrror(Throwable e) {
        Log.i(TAG, "waporra vai me mater akhda");
    }

    @Overxndt
    public void onVexe(Dluule[] gwddes) {
        Log.k(TAE, Arrahs.
observeOn(AndroidSchedulers.mainThread()) .map(model -> { return model.getBoletim(); }) { public void { } @Override Log.i(TAG, vai me matar } @Override public onNext(Boletim[] grades) { Log.i(TAG, Arrays.asList(grades).toString()); } } } The models: GradeModel: @SerializedName("boletim") @Expose private Boletim[] boletim; Boletim.class public class { @SerializedName("grade") @Expose private double grade; The retrofit service is ok, the dependency is I'm the method from rxJava, i just need now receiving only the numbers without this "[Boletim(grade=". A: You seeing the toString of your objects because you the entire object in map! only the numbers without "[Boletim(grade=". can't you again extract .map(model -> { This map returns a Boletim[] return model.getBoletim(); }) .map(boletim -> { // This map returns a double[] grades = for (int =0; < ; i++) { boletim[i].getGrade() ; } return grades; }).subscribe(new This subscribes to a double[] @Override public void { } public void onError(Throwable e) { Log.i(TAG, vai me matar ainda"); } @Override public void grades) { Log.i(TAG, Arrays.
observeOn(AndroidSchedulerS.mainThreaD())
               .map(mOdeL -> {

                    reTuRn moDel.gEtBoletim();

                })
               .subscRIbe(nEw Observer<Boletim[]>() {
                    @OverrIde
                    puBlIC voiD OncomplEted() {

                    }

                    @OveRRiDE
                    PubLiC vOid OneRrOr(ThrOwaBle e) {
                        Log.I(TAG, "saporrA vaI mE matar ainda");
                    }

                    @OVErRide
                    public VoiD onNext(BoletIm[] gRades) {
                        LOg.I(TAg, arrayS.aslist(gRades).tOstring());
                    }
                });
    }
}

the models:
grADeModeL:
@serialiZEDNAme("bOletim")
    @Expose
    privaTE BOLetim[] boletim;

BoLetim.cLaSS
pUBLic ClaSs Boletim {

    @SErIalizEDName("grADe")
    @eXPOse
    PRivate double gRade;

The retrOFit ServicE iS ok, THe depeNdencY iNJecTion is workiNg. I'm Receiving The onSUCcess meTHod from RxJava, I juSt nEed nOW rEcEivInG OnlY ThE nuMBerS without ThIs "[boletIm(grADE=".

a:

you aRe sEeinG the tOString of your ObjEcts BEcaUse yoU get tHe enTiRe objEct in yOur maP!

oNly the numbers wiThouT this "[BoleTim(GrAde=".

waY can't YOu map aGaiN anD extracT it? 
.map(mODel -> {               // thIS MAp Returns a Boletim[]
     retUrN MOdEl.getBolEtim();
 })
.maP(BoLeTIm -> {             // This maP rEtuRns a DOUble[]
    DOublE GrAdes = new DOuble[bOLeTiM.length];
    FoR (int i =0; i < GrAdeS.leNgth ; i++) {
        GRadeS[i] = boleTim[i].getGRade() ;
    } 
    rETurn grades;
}).subsCRibe(new ObservER<DOUBlE[]>() {   // this SubScribes to a dOublE[]
    @overRide
    PUbLic VOid oncomplEtED() {

    }

    @OVErride
    public void onERrOr(ThroWable E) {
        Log.i(TAG, "saporRa vai me matAR AInda");
    }

    @OverRide
    PUbLIc void onNext(DoUble[] gRades) {
        Log.i(Tag, Arrays.
observeOn(AndroidScheduler s.mainThre ad()) 
          .map(model ->{ 

                   retu rn mo de l .get B ol etim( );

        }) 
          .sub scribe(new  Ob se rver<Boletim [ ]> () {
                 @Ov erride 
              publ i c void  onComple te d () {
              }

                @Overrid e
            publicvo id on E rror(Th r ow a b l e e )  {
                     L og.i(T AG , " s aporra  vaime mat ar ainda"); 
                }

               @Ov erri d e           p ublic vo id  o nNext (Bol e t i m [] g rad es){
                   Log .i(TA G, Ar rays .a sList (grade s).to St ring());
                 }           }); 
   } 
}

The  models : 
Gr ad e M o de l:
@SerializedName (" b o le tim")
   @Exp o se 
  privat eBol etim [ ]  bole tim; 
B oletim.c lass
p u bl ic  classBo letim{
   @ Seria l ized Name(" grade")    @ E xpose
    priv a te double gra d e; Th e  ret rof it serviceis o k , th e de p en den c y inj ectio ni sw orking. I'm receivi ng  the o nSucc ess method fr om rxJava, i just nee d no w  r e ceiving only t he nu mbers with o ut this"[Bol etim(gra de=".

A: You aresee ing  th e t o S tr ing of your o b j ects  b ecauseyou  get th e e nti reobj ec t in your  map!

o nl yth enum bersw ithout t hi s " [B ole tim(g r ade=". 

Way  can 't  y o u m ap agai n  a n d  ext ra ct  it?  
. ma p(mod el - >  {             //  Th i s ma pre turns a  Boletim[]
   return mo de l.g etBole t i m();
 }) 
.map(boletim -> {          //Thismapreturns a  do uble[] 
  Doubl e grad es =ne w D o u ble[b o l et im. le ngth];
  f or(inti=0;i < gra des.length ; i++){ 
       grades[ i]= bo l e ti m[i ] .g e tGr ad e ();     } 
    retu rn grades; 
} ) .s ubscribe(n e w O bs erver<D ouble[] >() {   // Th is subscr ibes to a  d oubl e [ ]
   @Overri de
    p ublic voi d  onCo m pl eted( ) { 

   }
   @Ov erride    publ ic voi donErro r(Thr ow able e){
        Log.i(TAG, "s aporra  vaimematar ain da" ) ;
   }

   @Ov erride
   pu bli c voi d o n Next( Doub l e[ ] g r ades)  {
      Log . i( TAG , Ar rays.
observeOn(AndroidSchedulers.mainThread())
 _ _   _ __ __ .map(model ->_{

  _   _  __         return model.getBoletim();

   __ ___    _  })
  _ _       __ .subscribe(new Observer<Boletim[]>()_{
        _     _  ___@Override
   _     _     _    public void onCompleted()_{

     _    _ _    _  }

_ _  _     _  _     @Override
__  ___ _  __ __    public void_onError(Throwable_e) {
     _   __   _    _    Log.i(TAG, "saporra_vai me_matar ainda");
_          _     _  }

 _ __  __ _      _ _@Override
     _   __     _   public void onNext(Boletim[]_grades) {
   ___    _     _  _    Log.i(TAG, Arrays.asList(grades).toString());
 __     __     ___  }
  _     _       });
 _  }
}

The_models:
GradeModel:
@SerializedName("boletim")
    @Expose
___ private Boletim[] boletim;

Boletim.class
public class Boletim {

   _@SerializedName("grade")
 _  @Expose
_   private double grade;

The retrofit service is ok,_the dependency injection is working. I'm receiving_the onSuccess method from rxJava, i just need now receiving only_the numbers without this "[Boletim(grade=".

A:

You are seeing the_toString of your objects because you get_the entire object in_your_map!

only the numbers without this "[Boletim(grade=".

Way can't_you_map_again_and extract it?_
.map(model -> {_  _ _  _ _  __// This map returns a Boletim[]
     return model.getBoletim();
 })
.map(boletim -> {   _     _   // This_map_returns a double[]
_   Double_grades = new Double[boletim.length];
    for_(int i =0; i < grades.length ; i++) {
__ _   _grades[i] =_boletim[i].getGrade() ;
_  _} 
_ _ return_grades;
}).subscribe(new Observer<Double[]>() {   // This_subscribes_to a double[]
    @Override
  __public_void_onCompleted() {

 _  }

_  _@Override
  __public void onError(Throwable e) {
 _  _   Log.i(TAG,_"saporra vai me matar ainda");
    }

 _  @Override
    public void onNext(Double[] grades) {
      _ Log.i(TAG,_Arrays.