Guest User

Untitled

a guest
Dec 11th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. int a = 0;
  2.   for(int i = 0; i < hyppigheter.length; i++){
  3.     if(hyppigheter[i] >= hyppighetsgrense){
  4.       a++;
  5.     }
  6.   }
  7.   int[] hyppigsteLåter = new int[a];
  8.  
  9.   int b = 0;
  10.   for(int j = 0; j < hyppigheter.length; j++){
  11.     if(hyppigheter[j] >= hyppighetsgrense){
  12.       hyppigsteLåter[b] = hyppigheter[j];
  13.       b++;
  14.     }
  15.   }
Add Comment
Please, Sign In to add comment