Error in the for loop of TweetView


    final LinearLayout myLayout
            = (LinearLayout) findViewById(;

    final List<Long> tweetIds = Arrays.asList(510908133917487104L);
    TweetUtils.loadTweets(tweetIds, new Callback<Tweet>() {
        public void success(Result<Tweet> result) {

            for (Tweet tweet : {
                myLayout.addView(new TweetView(SearchTweet.this, tweet));

        public void failure(TwitterException exception) {
            // Toast.makeText(...).show();


I am facing a problem in foreach loop in the above code where it shows as an error when i debug it first it suggest me to remove foreach loop braces and then again shows some error and when i try to debug that it again give me add braces to foreach loop suggestion.

closed #3