Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a = 0;
- for(int i = 0; i < hyppigheter.length; i++){
- if(hyppigheter[i] >= hyppighetsgrense){
- a++;
- }
- }
- int[] hyppigsteLåter = new int[a];
- int b = 0;
- for(int j = 0; j < hyppigheter.length; j++){
- if(hyppigheter[j] >= hyppighetsgrense){
- hyppigsteLåter[b] = hyppigheter[j];
- b++;
- }
- }
Add Comment
Please, Sign In to add comment