title: Why can't I write a static string?
body: <pre><code>import java.util.*;
  
  public class HelloWorld{
  
     public static void main(String []args){
         static String[] str={"one","two"};
         Date date =new Date();
         Calendar cal = Calendar.getInstance();
         String year = "2018";
         String month ="4";
         int day =10;
  
         cal.set(Integer.parseInt(year),Integer.parseInt(month),day);
         System.out.println(cal.get(Calendar.DAY_OF_WEEK));
         // etc.
      }
  }
  </code></pre>
  
  <p>Error message :</p>
  
  <blockquote>
    <p>error: illegal start of expression</p>
    
    <p>static String[] str={"one","two"};</p>
  </blockquote>