quando compilo esse código, dá o seguinte erro na linha sublinhada: operator || cannot be applied to double,double.
nesse caso, como eu teria que fazer para dar certo?
import <a href="http://java.io">java.io</a>.<em>;
import java.util.</em>;
public class reaiscentavos {
public static void main(String args []) {
Scanner tec = new Scanner(System.in);
double valor, re, cents;
System.out.printf("Digite o valor em centavos: ");
valor = tec.nextDouble();
re = (int) (valor/100);
cents = (valor - 100*re);
if (valor > 100) {
System.out.print(re + " reais e ");
System.out.println(cents + " centavos");
}
if (valor < 0) {}
if ((re = 1) || (cents = 1)) {
System.out.print(re + " real");
System.out.println(cents + “centavo”); }
if ((0 < valor) && (valor < 99)) {
System.out.println(valor + " centavos"); }
System.out.printf("FIM DE PROGRAMA");
}}