Cześć chce porównać tablice i wyskakuje mi null exception
String[] h= new String[5];
String[] h1 = new String[9];
for(int i=0;i<3;i++){h[i]="a";}
for(int i=0;i<3;i++){h1[i]="a";}
if(h[3].equals(h1[3])){System.out.print("good");}
Jest jakiś sposób aby porównać te tablice tak żeby wyszło że są równe, tzn chce mieć w tych tablicach kilka nullów.