boolean isJar(String pathEntry){
  return pathEntry.endsWith(".jar") || pathEntry.endsWith(".zip");
}

boolean isJar ( String pathEntry ) { return pathEntry . endsWith ( ".jar" ) || pathEntry . endsWith ( ".zip" ) ; }
test if string points to a jar file
