Java equivalent to C++ arrow : <p>I understand that --> in C++ is the equivalent to . in Java.</p>

<p>The following C++ code</p>

<pre><code>SLList *prevList;
prevList = this-&gt;rest()-&gt;prevList;
</code></pre>

<p>Can be converted in Java code like this:</p>

<pre><code>SLList prevList;
prevList = this.rest().prevList;
</code></pre>

<p>Or should it be just</p>

<pre><code>SLList prevList;
prevList = this.rest();
</code></pre>

<p>Or is my code conversion between both languages completely wrong.</p>

<p>Thank you.</p>
