Source of P.java


  1: //: com:bruceeckel:tools:P.java
  2: // From 'Thinking in Java, 2nd ed.' by Bruce Eckel
  3: // www.BruceEckel.com. See copyright notice in CopyRight.txt.
  4: // The P.rint & P.rintln shorthand.
  5: package com.bruceeckel.tools;

  7: public class P {
  8:   public static void rint(String s) {
  9:     System.out.print(s);
 10:   }
 11:   public static void rintln(String s) {
 12:     System.out.println(s);
 13:   }
 14: } ///:~