A twitter4j update, taken directly from their webpage:
Twitter twitter = (new TwitterFactory()).getInstance();
Status status = twitter.updateStatus("hello from Twitter4j");
You also need a 4 line twitter4j.properties file containing your assorted tokens and secrets. It's a bit longer than 10 lines, but still pretty straightforward, even with the use of a (probably unnecessary) TwitterFactory.
By the way, I said java is a simple systems programming language. It's not what I would reach for if I wanted to update twitter either.
By the way, I said java is a simple systems programming language. It's not what I would reach for if I wanted to update twitter either.