can anyone tel wat error i made in the below code..I want to assign the list of strings stored in one variable to one string array.wordlist contains list of variables.
for (int s=0; s <=wordlist; s++)
{
String wordlisting[s]=new wordlist;
System.out.println(wordlisting[s]);
}
error
D:\program files\Java\jdk1.5.0\bin>javac Main.java
Main.java:86: ']' expected
String wordlisting[s]=new wordlist;
^
1 error