Advertisement
Samuel_Berkat_Hulu

LowArray

Mar 29th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. class LowArray
  2.  {
  3.  private long[] a; // ref to array a
  4.  public LowArray(int size) // constructor
  5.  { a = new long[size]; } // create array
  6.  public void setElem(int index, long value) // set value
  7.  { a[index] = value; }
  8.  public long getElem(int index) // get value
  9.  { return a[index]; }
  10.  } // end class LowArray
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement