Hello, you previously helped me with this part of my code:
public static void Lista(String textList) {
String[]stList= textList.split(",");
Arrays.asList(stList);
for(int i = 0; i < stList.length; i++){
System.out.println("Escribe un String para convertirlo a List: ");
if((stList == null) || (stList.equals(""))){
System.out.println(" El campo que ingreso esta vacio, vuelva a ingresarlo");
}else{
System.out.println(stList[i]);
}
}
}
Which I now have this little detail: I would like the if(toList.contains(","))
statement to be repeated every time the comma (,) is not inserted. Since the "Falta el carácter coma (,) por favor ingreselo:"
message is repeated only once, I know that a loop must be returned, but the command which is while
has not worked out well. Please help me.