public class Loopname{
public static void main (String [] args){
String files []= new String [] {"Hello Hola Bonjour"};
String delimiter= " ";
files[]=files[0].split(delimiter);
}
}
Can anyone tell me why this is not possible? If you know of any alternate ways of doing this please share. I am open to any tips and words of advice. I am a newbie, but I am willing to learn. Please help me. Thanks in advance?
The “[]” is part of the variable type, not the name. You can do: