Guest User

Untitled

a guest
Jun 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public static void main(String[] args) {
  2. int arr[] = new int[] {15,3,21,11};
  3. System.out.println(task4(arr));
  4. }
  5.  
  6. public static int[] task4(int arr[]){
  7. return arr ;
  8. }
  9.  
  10. System.out.println(Arrays.toString(task4(arr)));
  11.  
  12. public class TEST {
  13. public static void main(String[] args) throws IOException {
  14. int arr[] = new int[] {15,3,21,11};
  15. task4(arr);
  16. }
  17.  
  18. public static void task4(int[] arr){
  19. for(int i : arr){
  20. System.out.println(i);
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment