Pig Latin Problem Set Javadocs

cs101.io
Class Console

java.lang.Object
  extended bycs101.io.Console

public class Console
extends java.lang.Object

A helper class for Java Console IO. Contains appropriate console read and print methods.

Exists mostly to make System.In palatable by transforming it into a readLine-able BufferedReader. Out is included for completeness and uniformity.

Copyright 1998 Massachusetts Institute of Technology

Version:
$Id: Console.java,v 1.1.1.1 2002/06/05 21:56:32 root Exp $
Author:
Lynn Andrea Stein, las@ai.mit.edu
See Also:
System

Method Summary
static void print(java.lang.String s)
          Write a line to Console.
static void println()
          Write a blank line to Console.
static void println(java.lang.String s)
          Write a line to Console.
static java.lang.String readln()
          Read a line from Console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readln

public static final java.lang.String readln()
Read a line from Console. The String returned is not terminated with a newline.


println

public static final void println(java.lang.String s)
Write a line to Console. The String writen is concatenated with a newline.


println

public static final void println()
Write a blank line to Console.


print

public static final void print(java.lang.String s)
Write a line to Console. The String written is not concatenated with a newline.


Pig Latin Problem Set Javadocs