fork(2) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Software {
  8.  
  9. public static void main(String[] args) throws java.lang.Exception {
  10. double[] arr = { 1, 2, 3, 4, 5, 6 };
  11. method(arr);
  12. }
  13.  
  14. public static void method(double[] a) {
  15. for (int i = 0; i < a.length / 2; i++) {
  16. System.out.println(a[i] + " : " + a[i + a.length / 2]);
  17. }
  18. }
  19.  
  20. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
1.0 : 4.0
2.0 : 5.0
3.0 : 6.0