28 juin 2016, 13:03

public String transformation(){
if (this.LevelV == 0){this.Lv = "0";}
if (this.LevelV == 1){this.Lv = "1";}
if (this.LevelV == 2){this.Lv = "2";}
if (this.LevelV == 3){this.Lv = "3";}
if (this.LevelV == 4){this.Lv = "4";}
if (this.LevelV == 5){this.Lv = "5";}
if (this.LevelV == 6){this.Lv = "6";}
if (this.LevelV == 7){this.Lv = "7";}
if (this.LevelV == 8){this.Lv = "8";}
if (this.LevelV == 9){this.Lv = "9";}
if (this.LevelV == 10){this.Lv = "10";}
if (this.LevelV == 11){this.Lv = "11";}
if (this.LevelV == 12){this.Lv = "12";}
if (this.LevelV == 13){this.Lv = "13";}
if (this.LevelV == 14){this.Lv = "14";}
if (this.LevelV == 15){this.Lv = "15";}
if (this.LevelV == 16){this.Lv = "16";}
if (this.LevelV == 17){this.Lv = "17";}
if (this.LevelV == 18){this.Lv = "18";}
if (this.LevelV == 19){this.Lv = "19";}
if (this.LevelV == 20){this.Lv = "20";}
return Lv;}

Devient :


public String transformation() {
this.Lv = new String(this.LevelV);
return Lv;
}

Ça a rien avoir ton problème mais faut pas abuser