Advertisement
Rhaapssody

Phoenix code

Jan 12th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.List;
  3. import java.lang.System.*;
  4.  
  5.  
  6. public class Main
  7. {
  8. public static void main(String[] args) {
  9. ArrayList<Integer> ray = new ArrayList<Integer>();
  10. ray.add(9);
  11. ray.add(11);
  12. ray.add(11);
  13. ray.add(11);
  14. ray.add(7);
  15. ray.add(1000);
  16. ray.add(3);
  17.  
  18. int count = 0;
  19. for(int i = 0; i<=ray.length()-1;i++){
  20. if(ray.get(i) % 2 != 0){
  21. int count + 1;
  22. if(ray[i] % 2 ==0){
  23. }
  24. }
  25. }
  26.  
  27. }
  28. System.out.println(w);
  29.  
  30. }
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement