I tried using Twitter4J. The flow is Apply for an account. Permission will be given in 3-4 hours. (If you use it as a bot or something simple.) Make a note of the access token. Integrate the build required for Twitter4J into maven's pom.xml. Write the code in Java and enter the token you wrote down. Execute and check the timeline. is! Code and maven settings can be found in readme.md on Github. Details are given on Github.