RoboJDETM v2.0

java.lang
Class System

java.lang.Object
  extended by java.lang.System

public class System
extends Object

Library of system level methods.


Field Summary
static PrintStream err
          Current error output stream.
static PrintStream out
          Current output stream.
 
Method Summary
static long currentTimeMillis()
          Returns the system's millisecond counter.
static void exit(int exitCode)
          Exit the application.
static int identityHashCode(Object o)
          Gets the default (identity) hash code for the specified object.
static void setErr(PrintStream newErr)
          Sets the error output stream.
static void setOut(PrintStream newOut)
          Sets the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

err

public static PrintStream err
Current error output stream.


out

public static PrintStream out
Current output stream.

Method Detail

currentTimeMillis

public static long currentTimeMillis()
Returns the system's millisecond counter.

Returns:
milliseconds since the system started

exit

public static void exit(int exitCode)
Exit the application.

Parameters:
exitCode - code indicating why the application exited

identityHashCode

public static int identityHashCode(Object o)
Gets the default (identity) hash code for the specified object.

This hash code is guarenteed to be unique for each object. Two objects return the same identity hash code, they are the same object instance.

Parameters:
o - object
Returns:
identity hash code

setErr

public static void setErr(PrintStream newErr)
Sets the error output stream.

Parameters:
newErr - new error output stream

setOut

public static void setOut(PrintStream newOut)
Sets the output stream.

Parameters:
newOut - new output stream

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com