Using API in Java

Any Language that can do HTTP(S) requests can use the API - which java is capable of.

There are also Java-based Libraries for the Twitch API.

Thus, I recommend to either grab a HTTPS Library or a Twitch-specific library. The choice is yours!