Package java.lang

Class System

  • All Implemented Interfaces:
    Modified

    public final class System
    extends Object
    implements Modified
    Provides access to system-related information and resources including standard input and output. All methods of this class are accessed in a static way and the class itself can not be instantiated.
    • 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)
      • setOut

        public static void setOut​(PrintStream out)
      • currentTimeMillis

        public static long currentTimeMillis()