Package java.lang
Class System
- java.lang.Object
-
- java.lang.System
-
-
Field Summary
Fields Modifier and Type Field Description static PrintStream
err
static InputStream
in
static PrintStream
out
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
copies length elements from the array source, beginning with the element at sourcePosition, to the array destination starting at destinationPosition.static long
currentTimeMillis()
static void
setErr(PrintStream err)
static void
setIn(InputStream in)
static void
setOut(PrintStream out)
-
-
-
Field Detail
-
err
public static PrintStream err
-
out
public static PrintStream out
-
in
public static InputStream in
-
-
Method Detail
-
arraycopy
public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
copies length elements from the array source, beginning with the element at sourcePosition, to the array destination starting at destinationPosition. The destination array must already exist when System.arraycopy() is called. The method does not create it. The source and destination arrays must be of the same type- Parameters:
src
- Source array.srcPos
- Start element in source array.dest
- Destination array.destPos
- Start element in destination array.length
- Number of elements to be copied.
-
setErr
public static void setErr(PrintStream err)
-
setIn
public static void setIn(InputStream in)
-
setOut
public static void setOut(PrintStream out)
-
currentTimeMillis
public static long currentTimeMillis()
-
-