fork download
  1. class Programa {
  2. public static void main(String[] args) {
  3. double[] a = { 12.5, -6, 3.0, -21.234 };
  4.  
  5. for (double i: a) System.out.println( i );
  6. }
  7. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
12.5
-6.0
3.0
-21.234