Removed error in code line36 
throw new UnsupportedOperationException("Not supported yet.");