Search:

Type: Posts; User: Tjstretch

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    1,747

    Re: Help with MyString class!

    Any time you use the var++ operator, it will add one to the value and save it.




    int[] array = new int[] { 1, 2, 3, 4 };

    int index = 0;

    int val2 = array[index++]; // index is now 1.
  2. Replies
    3
    Views
    1,747

    Re: Help with MyString class!

    Things I noticed:



    MyString(char [] initString) { // Why is this package private?
    ...
    }

    MyString(String initString) { // Again.. Why package private?
    // Look at the toCharArray in...
Results 1 to 2 of 2