Program to define a negation

class
class Negation {

public void work(){

int x = 8;

System.out.println("x = " + x);

int y = -x;

System.out.println("y = " + y);

}

}