Yes, it is.

Coz you return it if it has arguments less than 3. Try removing if(args.length<3) and pass two arguments to experience index out of bound exception.