AI completions for your Java IDE

Code faster and smarter using code completions learned from millions of programs directly in IntelliJ or Android Studio

Get Codota for Java now
Codota completions
connection.prepareStatement(sql);Connection connection; // java.sql.Connection String sql;
String sql;
  • ...connection.PreparedStatement(sql)
  • ...connection.PreparedStatement("")
  • ...connection.PreparedStatement(string, int1, int2)
  • Base64Decoder
  • Base64Encoder

Let great code find you

Get contextual code completions & suggestions while you write in your IDE

Snippet predictions

Get concise code references that can save you time and prevent errors

Code discovery

Search code by classes or methods to get common & credible references

Autocomplete based on learned code idioms

Codota writes pieces of code for you based on models learned from millions of great programs. Easily adopt standard code idioms and focus on the specifics of your problem and not common component wiring.

Understanding the world's code

Codota’s algorithms learn from millions of programs to establish the best, most relevant, and most helpful code for any given task

Your code stays private

Codota doesn’t upload your code to the cloud. To learn more about the information that’s being sent to our servers to provide code insights, check our FAQ

Codota for teams

Codota automatically learns the patterns and rules in your company’s proprietary code to make sure your developers have the best code insights, whenever and wherever they need them.

Learn more about Codota for teams

Ittai Zeidman

Backend Engineering Lead at

“Codota helps us code faster and make fewer errors”

Codota gives us the code we need from all relevant repositories - in our IDE. It’s just so much better than trying to find code using plain textual search.

Try Codota in your browser now

Popular APIs

  • Gson

    This is the main class for using Gson. Gson is typically used by first constructing a Gson instance and then invoking #toJson(Object) or #fromJson(String,Class)methods on it

  • Stream.filter

    Returns a stream consisting of the elements of this stream that match the given predicate

  • Executors.newFixedThreadPool

    Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue

  • GetMapping

    Annotation for mapping HTTP GET requests onto specific handler methods

  • OkHttpClient

    Factory for Call, which can be used to send HTTP requests and read their responses

  • ImmutableList

    A high-performance, immutable, random-access List implementation. Does not permit null elements

  • BufferedReader

    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is minimized, since most (smaller) requests can be satisfied by accessing the buffer alone

  • URL.openConnection

    Returns a new connection to the resource referred to by this URL

Get Codota for Java now