Hi all.
public static void main(String[] args) throws IOException {
String st3[]=new String[]{"сто", "двести", "триста", "sdf", "sdfsd", "sdfsd"};
System.out.println(st3[1]);
}
In second line Netbeans displays an error:
"non-static variable cannot be referenced from a static context".
I know that the problem is in declaring the array. How to declare a STRING array and quickly fill it with data?
Sorry for stupid question and very bad english.
Thanks very much for answers, error resolved. :)