File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -3529,6 +3529,25 @@ static public void print(String what) {
3529
3529
System .out .flush ();
3530
3530
}
3531
3531
3532
+ /**
3533
+ * @param variables list of data, separated by commas
3534
+ */
3535
+ static public void print (Object ... variables ) {
3536
+ StringBuilder sb = new StringBuilder ();
3537
+ for (Object o : variables ) {
3538
+ if (sb .length () != 0 ) {
3539
+ sb .append (" " );
3540
+ }
3541
+ if (o == null ) {
3542
+ sb .append ("null" );
3543
+ } else {
3544
+ sb .append (o .toString ());
3545
+ }
3546
+ }
3547
+ System .out .print (sb .toString ());
3548
+ }
3549
+
3550
+ /*
3532
3551
static public void print(Object what) {
3533
3552
if (what == null) {
3534
3553
// special case since this does fuggly things on > 1.1
@@ -3537,6 +3556,7 @@ static public void print(Object what) {
3537
3556
System.out.println(what.toString());
3538
3557
}
3539
3558
}
3559
+ */
3540
3560
3541
3561
//
3542
3562
@@ -3570,6 +3590,15 @@ static public void println(String what) {
3570
3590
print (what ); System .out .println ();
3571
3591
}
3572
3592
3593
+ /**
3594
+ * @param variables list of data, separated by commas
3595
+ */
3596
+ static public void println (Object ... variables ) {
3597
+ // System.out.println("got " + variables.length + " variables");
3598
+ print (variables );
3599
+ println ();
3600
+ }
3601
+
3573
3602
static public void println (Object what ) {
3574
3603
if (what == null ) {
3575
3604
// special case since this does fuggly things on > 1.1
You can’t perform that action at this time.
0 commit comments