Content deleted Content added
Line 48:
for (Object o : objects)
System.out.print(o + " ");
}
// Can be used to print:
// printSpaced(1, 2, "three");
C# Example:
public static void printSpaced(params Object[] objects) {
foreach (Object o in objects) //objects is an array. We can use for loop by using the Length property.
Console.WriteLine(o + " ");
}
|