Advertisement
o0OBlackCatO0o

Untitled

May 24th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public class dimtest {
  2.  
  3. public static void todo(int[] arr) {
  4. System.out.print("bejarom: ");
  5. for(int i=0;i<arr.length;++i) {
  6. System.out.print(arr[i] + " ");
  7. }
  8. System.out.println();
  9. }
  10.  
  11. public static void main(String[] args) {
  12. int dim = 5;
  13. int dimsize = 3;
  14. int[] arr = new int[dim];
  15. for(int i=0;i<dim*dimsize+1;++i){
  16. todo(arr);
  17. arr[i%dim]++;
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement