public static boolean isPublic(int mod){
  return Modifier.isPublic(mod);
}

public static boolean isPublic ( int mod ) { return Modifier . isPublic ( mod ) ; }
returns if modifier is public . note that in our case modifier can be mix ( public and private for example ) .
