LegendaryBeazt
Mitglied
Bei folgendem Programm wird die Methode Fernando.berPunkte(); in Zeile 18 rot markiert.
Hoffe ihr könnt mir helfen
LG Max
Code:
public class Formel1 {
void berPunkte() {
int sum =0;
for(int i = 0; i <17/*18*/;i++){
sum+=i;
System.out.println("Gesamtpunkte Fernando:" + sum);
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] Fernando = {10,8,10,8,8,10,10,10,10,4,8,4,0,8,0,8,10,8};
Fernando.berPunkte();
}
}
Hoffe ihr könnt mir helfen

LG Max