players = ['charles', 'martina', 'michael', 'florence', 'eli']
create above variable and print first 3 content
Answers
Answered by
0
Answer:
class HelloWorld {
public static void main(String[] args) {
String[] Players = {"charles" , "martina" , "michael" , "florence" , "eli"};
for(int i = 0; i < 3; i++)
{
System.out.println(Players[i] + "\n");
}
}
}
Explanation:output -
charles
martina
michael
Similar questions