Java: slicing a String
<p>I have URLs which always end on a number, for example:</p>

<pre><code>  String url = "localhost:8080/myproject/reader/add/1/";
  String anotherurl = "localhost:8080/myproject/actor/take/154/";
</code></pre>

<p>I want to extract the number between the last two slashes ("/").</p>

<p>Does anyone know how I can do this? </p>
