Posting a tweet using Java
You can’t believe, how easy and fast to tweet using java. yes, it is possible with the help of java library called ‘twiiter4j’. you can download the library http://twitter4j.org from this site and use it. consider the following code
Twitter twitter = TwitterFactory.getSingleton(); Status status = twitter.updateStatus(latestStatus); System.out.println("Successfully updated the status to [" + status.getText() + "].");
use this code in your main function. this code will post your tweet into your timeline. find more example at http://twitter4j.org/en/code-examples.html . It is really easy to use and make it working with twitter4j. so enjoy java programming.