comments extraction from youtube using gwt-youtube-api-1.0.3 in java
<p>Trying to retrieve user comments from youtube. The code is given below</p>

<pre><code>String videoId = "3u1fu6f8Hto";
    String str = "http://gdata.youtube.com/feeds/api/videos/" + videoId + "/comments";
    YouTubeQuery youtubeQuery = new YouTubeQuery(new URL(str));

    youtubeQuery.setMaxResults(50);
    youtubeQuery.setStartIndex(1);

    String videoEntryUrl = youtubeQuery.getUrl().toString();

    VideoEntry videoEntry = service.getEntry(new URL(videoEntryUrl), VideoEntry.class);

    String myUrl = youtubeQuery.getUrl().toString();  // only another name

    CommentFeed commentFeed = service.getFeed(new URL(myUrl), CommentFeed.class); // Feed response
</code></pre>

<p>The code is showing incompatible types: URL can not be converted to string</p>