The Array object in String[] a=null; is not initialized
All what you have done here is declare a variable called "a" but that variable does not refer to anything
for the code to work it has to be as follows
Code:
public void st(){
String[] a=new String[5];
String a1="Hello....";
for(int i=0;i<5;i++){
a[i]=a1;
System.out.println(a[i]);
}
}