jeudi 5 mars 2015

How can we get result modulo INT_MAX?


Vote count:

0




If we try to apply Integer.valueOf(String.valueOf(Integer.MAX_VALUE) + "9"); we'll get NumberFormatException. But I need to get remainder modulo Integer.MAX_VALUE from the String representation. How can we do that?



asked 1 min ago







How can we get result modulo INT_MAX?

Aucun commentaire:

Enregistrer un commentaire