Class ArrayUtilsClient

java.lang.Object
it.unimi.di.prog2.s05.ArrayUtilsClient

public class ArrayUtilsClient extends Object
Client for the ArrayUtils class.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
    The fixed size of the input and array.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    .
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Reads 10 integers in increasing order from the standard input and prints the index of the integer passed as argument on the command line if found.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SIZE

      private static final int SIZE
      The fixed size of the input and array.
      See Also:
  • Constructor Details

    • ArrayUtilsClient

      private ArrayUtilsClient()
      .
  • Method Details

    • main

      public static void main(String[] args)
      Reads 10 integers in increasing order from the standard input and prints the index of the integer passed as argument on the command line if found.
      Parameters:
      args - the value to search for.