I declare this variable:
private String numCarteBancaireValide=String.valueOf(((Integer.parseInt(Config.NUM_CARTE_BANCAIRE_VALIDE) ) + (Integer.parseInt(\"
The 4111111111111111
(which most likely is the value of Config.NUM_CARTE_BANCAIRE_VALIDE
) overflows the Integer
type.
Better try with:
//if you need a primitive
long value = Long.parseLong(Config.NUM_CARTE_BANCAIRE_VALIDE);
or
//if you need a wrapper
Long value = Long.valueOf(Config.NUM_CARTE_BANCAIRE_VALIDE);