Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class dimtest {
- public static void todo(int[] arr) {
- System.out.print("bejarom: ");
- for(int i=0;i<arr.length;++i) {
- System.out.print(arr[i] + " ");
- }
- System.out.println();
- }
- public static void main(String[] args) {
- int dim = 5;
- int dimsize = 3;
- int[] arr = new int[dim];
- for(int i=0;i<dim*dimsize+1;++i){
- todo(arr);
- arr[i%dim]++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement