Qualcuno sa che costante usare per richiamare il numero intero più grande che c'è?
Thanks
Qualcuno sa che costante usare per richiamare il numero intero più grande che c'è?
Thanks
Integer.MAX_VALUE ma non rapppresenta un numero infinito, ma il valore massimo che puoò avere un intero.
Sun Certified Java Programmer
EUCIP Core Level Certified
European Certification of Informatics Professionals
Analogamente Double.MAX_VALUE se vuoi un double;
poi ci sono anche i campi:
Double.POSITIVE_INFINITY e Double.NEGATIVE_INFINITY
Sun Certified Java Programmer
EUCIP Core Level Certified
European Certification of Informatics Professionals
Ah graxie! Mi serviva proprio quello della tua prima risposta!