Explorar el Código

Changecd output to be space sperated instead of comas

Tom Flucke hace 10 años
padre
commit
bf8102884a
Se han modificado 2 ficheros con 11 adiciones y 2 borrados
  1. BIN
      Lab2/bin/Separator.class
  2. 11 2
      Lab2/src/Separator.java

BIN
Lab2/bin/Separator.class


+ 11 - 2
Lab2/src/Separator.java

@@ -55,8 +55,17 @@ public class Separator {
 		}
 		
 		System.out.println("Abort mission");
-		System.out.println("Integers: "+Arrays.toString(intArray));
-		System.out.println("Floats: "+Arrays.toString(floatArray));
+		System.out.print("Integers: ");
+		for (int i : intArray)
+		{
+			System.out.print(i+" ");
+		}
+		System.out.println();
+		System.out.print("Floats: ");
+		for (float f : floatArray)
+		{
+			System.out.print(f+" ");
+		}
 		
 	}