Array Sort In Java Using Methods From A Different