TOPIC

JAVA8 - condição 5 retorna carinha triste :(

rceeuporeumesmo asked 4 years ago

O que há de errado???

class TempDoDia { private int A, B, C;

public int getA() {
    return A;
}

public void setA(int A) {
    this.A = A;
}

public int getB() {
    return B;
}

public void setB(int B) {
    this.B = B;
}

public int getC() {
    return C;
}

public void setC(int C) {
    this.C = C;        

}
//condiçoes dos dias 

public boolean condCinco(){
    return ((A > B && B > C)&&((A - B) > (B - C)));
}

public String getCondicao(){

        condicao = ":)";    
    if (condCinco())

    return condicao;
}

}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.