SHARE
TWEET

Untitled

a guest Feb 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int[] analizaTablicy(int arr[], int cyfra){
  2.     int tab[]= new int[arr.length];
  3.     int z=0;
  4.     for(int i=0;i<arr.length;i++){
  5.         int o=arr[i];
  6.         String ostr=String.valueOf(o);
  7.         String cyfrastr=String.valueOf(cyfra);
  8.         if(!ostr.contains(cyfrastr))
  9.         {
  10.             tab[z]=o;  
  11.             z++;
  12.         }
  13.     }
  14.     int glowna[]=new int[z];
  15.     for(int j=0;j<z;j++){
  16.         glowna[j]=tab[j];
  17.     }
  18.     return glowna;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top