Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] tmp = {4,9,3,7};
- int ultimo=tmp[tmp.length -1];
- for (int i = tmp.length -1 ; i>0; i--) {
- int h = i-1;
- tmp[i] = tmp[h];
- }
- tmp[0] = ultimo;
- for (int i = 0; i < tmp.length; i++) {
- System.out.println(tmp[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement