Here's an example Java code that prints out the current date and time:

```
import java.time.LocalDateTime;

public class CurrentDateTime {
   public static void main(String[] args) {
      LocalDateTime dateTime = LocalDateTime.now();
      System.out.println("Current Date and Time: " + dateTime);
   }
}
```

This code uses the `java.time.LocalDateTime` class to get the current date and time. It then prints out the date and time using the `System.out.println()` method.
Fornisci un esempio di codice scritto in Java che stampa la data e l'ora correnti.