001 /** 002 * The P class from exercise 5.4 in the book. 003 * 004 * @author Kristian Torp, torp (at) cs (dot) aau (dot) dk 005 * @version 1.0 006 */ 007 public class P { 008 009 /** 010 * Simpler to call print method. 011 */ 012 public static void rint(String s) { 013 System.out.print(s); 014 } 015 016 /** 017 * Overloaded version of rint 018 * 019 * @param b 020 * the boolean variable to print 021 */ 022 public static void rint(boolean b) { 023 System.out.print(b); 024 } 025 026 /** 027 * Simpler to calls System.out.println. 028 * 029 * @param s 030 * the string to display 031 */ 032 public static void rintln(String s) { 033 System.out.println(s); 034 } 035 036 /** 037 * Simpler to calls System.out.println. 038 * 039 * @param b 040 * the boolean to display 041 */ 042 public static void rintln(boolean b) { 043 System.out.println(b); 044 } 045 }