I need to create different strings inside a while loop, the problem is how to name them and not having them overwritten each time
for ex:
while (i<10)
{
String x=scan.nextLine(); //here is the problem, x gets overwritten each time
i++}
Thank you in advance.