Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package koncentrat;
  2.  
  3. public class Koncentrat {
  4.  
  5. public static void main(String[] args) {
  6. int[] pole=new int[20];
  7. PlnPole(pole);
  8. VypisPole(pole);
  9. }
  10.  
  11. static void PlnPole(int[] pole){
  12. for (int i=0;i<pole.length;i++){
  13. pole[i]=1;
  14. }
  15. }
  16.  
  17. static void VypisPole(int[] x){
  18. for(int i=0;i<x.length;i++){
  19. System.out.print(x[i]+" ");
  20. }
  21. System.out.println("");
  22. }
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement