Solved selection sort in java

Signed-off-by: Ionut Radu <ihonius@gmail.com>