While coding with eclipse, the code i++ is shown as a dead code. What does that mean? Why is it being a dead code?
public class ScoreCalculator{
public static void main(String[] args) {
int ScoreCard[] = {70,102,198, 60};
String PlayersList[] = {"Mukesh","Suresh","Shardul","Nandan"};
System.out.println(DisplayScore(ScoreCard, PlayersList));
}
public static String DisplayScore(int[] Scores, String[] Players){
for( int i=0; i <= 3; i++){
if(Scores[i]>100 && Scores[i]<=200){
System.out.println("\n******Players who moved to next level******");
return Players[i] + "\n";
}
else
{
System.out.println("\n******Players in Danger Level******");
return Players[i] + "\n";
}
}
return "\n";
}
}