public static void tweet(String text)
    {

        if(!(text.equals("")))
        {
            ConfigurationBuilder cb = new ConfigurationBuilder();
            cb.setOAuthConsumerKey(OAUTH_CONSUMER_KEY);
            cb.setOAuthConsumerSecret(OAUTH_CONSUMER_SECRET);
            cb.setOAuthAccessToken(OAUTH_ACCESS_TOKEN);
            cb.setOAuthAccessTokenSecret(OAUTH_ACCESS_TOKEN_SECRET);
            if (OAUTH_ACCESS_TOKEN.equals("")) {
                try {
                    login();
                } catch (TwitterException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            //Abfrage starten
            Twitter twitter = new TwitterFactory(cb.build()).getInstance();
            try
            {
                Status status = twitter.updateStatus(text);
                System.out.println("tweet "+text);
                System.out.println("Successfully updated the status to ["+ status.getText() +" ].");
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }
    }