import java.util.Scanner;
class array
{
public static void main(String args[]) { Scanner s=new Scanner(System.in); System.out.print("enter the no:->"); int []arr=new int[5]; int []arr=s.nextInt(); System.out.println(arr); }
}
libs.CopyLibs.classpath=C\:/Program Files/NetBeans 8.0/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar set this in yor netbeans go to netbeans tools>options> java tab and add properties libs.CopyLibs.classpath=C\:/Program Files/NetBeans 8.0/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar