Java Equivalent of C# async/await?
<p>I am a normal C# developer but occasionally I develop application in java. I am looking is there is any Java equivalent of C# async/await? In simple words what is the java equivalent of,</p>

<pre><code>async Task&lt;int&gt; AccessTheWebAsync()
{ 
    HttpClient client = new HttpClient();
    var urlContents = await client.GetStringAsync("http://msdn.microsoft.com");
    return urlContents.Length;
}
</code></pre>
