does not name a type

import processing.serial.*;
import java.awt.event.KeyEvent;
import java.io.IOException;

when i try to verify this code in arduino it gives me this error '' import does not name a type'' how can i fix it

The Arduino doesn't do Java.
Sorry.