Generate a line of code in Java to print the following string
Hello World
Here is a line of code in Java to print "Hello World":

```java
System.out.println("Hello World");
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a line of code in Java to print the following string

### Input:
Hello World

### Output:
Here is a line of code in Java to print "Hello World":

```java
System.out.println("Hello World");
```