import javax.swing.JOptionPane; class ArrayTest{ int evenlist[] = new int[10]; int oddlist[] = new int[10]; int e=0, o=0; void getData(){ String s; int x; for(int i=0;i<10;i++){ s = JOptionPane.showInputDialog("Enter the number"); x = Integer.parseInt(s); if(x % 2 == 0){ evenlist[e]=x; e++; }else{ oddlist[o]=x; o++; } } } void display(){ String outp = "Even List ="; for(int j=0;j