Write a program to declare the variable negativeIntegerand initalize with value -29. You have to print the variable negativeInteger.
Keep the name of your class as Main
Use the System.out.println()statement for printing.
Example output: negativeInteger is -29
Answers & Comments
public static void main(String...args){
int negativeInteger=-29;
System.out.println("negativeInteger is "+negativeInteger);
}
}