please help me about this program...i dont how to sort the even numbers inputted.
import java.io.*;
import java.util.*;
public class mp5{
public static void main(String[ ]args) throws IOException{
BufferedReader br=new BufferedReader (new InputStreamReader (System.in)) ;
int num=0,sum=0;
String snum;
System.out.print ("Enter size of Array: ");
snum=br.readLine( );
num=Integer. parseInt( snum);
if (num>10){
System.out.print ("Enter size not more than 10!!");
}
else {
String st,sp1="",sp2= " ";
int arr[];
arr=new int [num];
for (int i=0;i<num;i++){
System.out.print ("Enter element " + i + ": ");
st=br.readLine( );
arr[i]=Integer. parseInt( st);
sum=sum + arr[i];
sp1= sp1 + st + sp2;
}
Arrays.sort(arr);
System.out.println(Arrays.toString( arr));
System.out.println ("The elements of the array are " + sp1);
System.out.println ("The sum of the elements is " + sum);
}
}
}